Skip to content

Commit

Permalink
Closes #11.
Browse files Browse the repository at this point in the history
  • Loading branch information
Konard committed Jul 27, 2019
1 parent 1d90473 commit 0e9e631
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Protocol/Gexf/Graph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ private void WriteNodes(XmlWriter writer)
}
}

public static void WriteXml(XmlWriter writer, Action writeNodes, Action writeEdges, GraphMode mode = GraphMode.Static, GraphDefaultEdgeType defaultEdgeType = GraphDefaultEdgeType.Directed)
public static void WriteXml(XmlWriter writer, Action writeNodes, Action writeEdges) => WriteXml(writer, writeNodes, writeEdges, GraphMode.Static, GraphDefaultEdgeType.Directed);

public static void WriteXml(XmlWriter writer, Action writeNodes, Action writeEdges, GraphMode mode) => WriteXml(writer, writeNodes, writeEdges, mode, GraphDefaultEdgeType.Directed);

public static void WriteXml(XmlWriter writer, Action writeNodes, Action writeEdges, GraphMode mode, GraphDefaultEdgeType defaultEdgeType)
{
writer.WriteStartElement(ElementName);
writer.WriteAttributeString(ModeAttributeName, mode.ToString().ToLower());
Expand Down

0 comments on commit 0e9e631

Please sign in to comment.