ggfm.data.get_type_id¶
- class ggfm.data.get_type_id(graph)[source]¶
Bases:
Statistically analyze the type_degin_ids and graph_node_type of graphs.
- Parameters:
graph (class:ggfm.data.Graph) – Target graph.
- Returns:
type_begin_ids (list) – The begin index of each node type, type_begin_ids are consistent with graph_node_type.
graph_node_type (list) – Graph node types.