title: Gephi: Import Mixed (Directed and Undirected Type in same graph) Network -- How?
body: <p>I have a graph where some edges are directed and some are undirected, but I cannot get Gephi to acknowledge both edge types in the same graph. </p>
  
  <p>I am currently using R to manipulate the graph, and then using the 'rgexf' package to encode the graph into a Gephi-readable .gexf file as follows:</p>
  
  <pre><code>write.gexf(nodes = nodes_df, edges = edges_df, edgesWeight = E(gD)$weight,
    nodesAtt = nodes_att, edgesAtt = edges_att, nodesVizAtt = nodes_att_viz, 
    edgesVizAtt = edges_att_viz,output = "plag_c_d3.gexf")
  </code></pre>
  
  <p>Here, edgesAtt contains a Type column of strings ('Directed' and 'Undirected'). edgesAtt looks like:</p>
  
  <pre><code>Type        weight sourcedate targetdate repost_date_diff
     Directed    100 1361424992 1361426157        0.0134838
   Undirected    100 1362140722 1362140722        0.0000000
     Directed     54 1365403984 1365465600        0.7131481
  </code></pre>
  
  <p>However, when I open Gephi and open the gexf file, Gephi does not read this 'Type' column as the edge type. Instead, it just treats the 'Type' column like any other arbitrary edge attribute, and it adds a new column called 'Type' filled with the default edge type I choose when opening the dataset. Selecting 'mixed' when I import the data does not change this. Gephi does successfully read the 'weight' column as edge weights, however. </p>
  
  <p>How do I make Gephi see both edge types?</p>
  
  <p><strong>Edit</strong> changing the defaultedgetype attribute to 'mixed' or to 'mutual' also does not work, nor does making each undirected edge into two directional edges that face opposite ways.</p>