Skip to main content

NeighborhoodGraph

NeighborhoodGraph[g,v] gives the graph neighborhood of a vertex v in the graph g.

NeighborhoodGraph[g,{a1,a2,…}] gives the graph neighborhood of the ai that can be vertices, edges, or subgraphs of g.

NeighborhoodGraph[g,patt] gives the graph neighborhood of the vertices and edges that match the pattern patt.

NeighborhoodGraph[g,…,d] gives the neighborhood up to distance d.

NeighborhoodGraph[{v->w,…},…] uses rules v->w to specify the graph g.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.