Qurak

VertexCount

उपलब्ध

Returns the number of vertices in a graph (optionally matching a pattern)

VertexCount[g]
VertexCount[g, patt]
VertexCount[{v -> w, …}, …]
g = HararyGraph[3, 5, VertexSize -> Large, ImagePadding -> 10]; vd = VertexDegree[g]; HighlightGraph[g, Table[Style[Labeled[VertexList[g][[i]], vd[[i]]], ColorData["TemperatureMap"][vd[[i]] / Max[vd]]], {i, VertexCount[g]}]]; VertexCount[g, _ ? (VertexDegree[g, #] == 3&)] → 4

इनमें प्रयुक्त

विषय

संबंधित

सभी 6300 फ़ंक्शन · इसे किसी MCP क्लाइंट से उपयोग करें