gives a list of vertices adjacent to vertex v.
gives a list of vertices adjacent to vertices that match the pattern patt.
gives a list of vertices that are at distance at most d.
Examplesopen allclose all
Basic Examples (3)
A list of vertices adjacent to the vertex 1:
Find all vertices adjacent to vertices that match a pattern:
Highlight adjacent vertices:
AdjacencyList works with undirected graphs:
Use rules to specify the graph:
Use patterns to select a subset of vertices:
Find vertices at a distance 2 from vertex 1:
AdjacencyList works with large graphs:
A family network consisting of the closest relatives, including parents, siblings, and children:
Immediate family members of Nancy:
Properties & Relations (2)
Introduced in 2012
Updated in 2015