public override string ToString()
        {
            string result = "Graph:\n";

            foreach (var node in Nodes)
            {
                String.Concat(result, String.Format("{0} : {1}\n", node, Edges.ElementAt(node.Id)));
            }

            return(result + "\n");
        }
 public List <Node> GetEdges(Node node)
 {
     return(Edges.ElementAt(node.Id));
 }
 public void InsertEdge(Node first, Node second)
 {
     Edges.ElementAt(first.Id).Add(second);
 }