Add convenience functions for computing out neighbor nodes, inout neighbor nodes #310
Labels
core
something about core
development
Development of new Functionalities
enhancement
New feature or request
good first issue
Good for newcomers
hacktoberfest
hacktoberfest issue
Priority:Medium
Priority Label for medium priority issue
While almost all graph searching and neighbor lookups can be accomplished through the adjacency matrix, it is sometimes very useful for programmers to iteravely go through neighbors by providing a pointer to a node.
This can be done by simply using the adjacency matrix and determining the edge type, then returning the set of edges that satisfies the direction.
Formally, this feature request is to provide functions such as
outEdges(Node<T>* node)
andinOutEdges(Node<T>* node)
, which will return out edges from a node in a directed graph and all edges from a node in any graph, respectively.The text was updated successfully, but these errors were encountered: