Skip to content

GraphQ

GraphQ(expr)

test if expr is a graph object.

See:

Examples

>> GraphQ(Graph({1 -> 2, 2 -> 3, 1 -> 3, 4 -> 2}) )
True
>> GraphQ( Sin(x) )
False
>> GraphQ( Graph({1->2, 2->3, 3->1}, EdgeWeight->{5.061,2.282,5.086}) )
True

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

Implementation status

  • ✅ - full supported

Github