public Graph(string id) { ID = id; GraphAttributes = new GraphAttributes(); DefaultNodeAttributes = new NodeAttributes(); DefaultEdgeAttributes = new EdgeAttributes(); Nodes = new List <Node>(); Edges = new List <Edge>(); Subgraphs = new List <Subgraph>(); }
public Subgraph(string id) { SubgraphAttributes = new SubgraphAttributes(); DefaultNodeAttributes = new NodeAttributes(); DefaultEdgeAttributes = new EdgeAttributes(); Nodes = new List <Node>(); Edges = new List <Edge>(); Subgraphs = new List <Subgraph>(); if (!id.ToUpperInvariant().StartsWith("CLUSTER_")) { ID = string.Format("cluster_{0}", id); } else { ID = id; } }
public Edge() { Connections = new List <string>(); EdgeAttributes = new EdgeAttributes(); }