Exemple #1
0
        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>();
        }
Exemple #2
0
        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;
            }
        }
Exemple #3
0
 public Edge()
 {
     Connections    = new List <string>();
     EdgeAttributes = new EdgeAttributes();
 }