KnowledgeGraph.node_count()
Count nodes in the graph.
Usage
KnowledgeGraph.node_count(
*,
node_type=None,
)Parameters
node_type: NodeType | None = None- If provided, count only nodes of this type.
Returns
int- Number of matching nodes.
Count nodes in the graph.
Usage
node_type: NodeType | None = None int