Exemplo n.º 1
0
        public GraphNode <T> FindNode(T value)
        {
            var nodeFinder = new NodeFinder <T>();

            return(NodeSet.Select(graphNode => nodeFinder.FindNode(graphNode, value)).FirstOrDefault(found => found != null));
        }
Exemplo n.º 2
0
 public GraphNode <T> FindNode(NodeFinder <T> nodeFinder, T value)
 {
     return(nodeFinder.FindNode(this, value));
 }