Summarize Graph

The Summarize Graph operation takes an instance of kgx.graph.base_graph.BaseGraph and generates summary statistics for the entire graph.

This operation generates summary as a YAML in a format that is compatible with the Knowledge Graph Hub dashboard.

The main entry point is the kgx.graph_operations.summarize_graph.generate_graph_stats method.

Note: To generate a summary statistics YAML that is consistent with Translator API (TRAPI) standards, refer to Knowledge Map operation.

kgx.graph_operations.summarize_graph