there adjacency list graph shown below:
a--------b | /|\ | / | \ | / | \ | / | \ | / | \ | / | \ | / | \ c e-------d
implementing parent, children in same class leads 1 level hierarchy.
please suggest model implement adjacency list graph using entity framework.
you need class this:
public class node { public string name { get; set; } public ienumerable<node> neighbors { get; set; } }
Comments
Post a Comment