예제 #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));
        }
예제 #2
0
 public GraphNode <T> FindNode(NodeFinder <T> nodeFinder, T value)
 {
     return(nodeFinder.FindNode(this, value));
 }