Skip to content

VertexList

VertexList(graph)

convert the graph into a list of vertices.

See

Examples

>> VertexList(Graph({1 -> 2, 2 -> 3, 1 -> 3, 4 -> 2}))
{1,2,3,4}

GraphCenter, GraphDiameter, GraphPeriphery, GraphRadius, AdjacencyMatrix, EdgeList, EdgeQ, EulerianGraphQ, FindEulerianCycle, FindHamiltonianCycle, FindVertexCover, FindShortestPath, FindShortestTour, FindSpanningTree, Graph, GraphQ, HamiltonianGraphQ, VertexEccentricity, VertexQ

Implementation status

  • ✅ - full supported

Github