stgraph.graph.dynamic.naive package¶
Submodules¶
stgraph.graph.dynamic.naive.naive_graph module¶
Represent Dynamic Graphs using CSR in STGraph.
- class stgraph.graph.dynamic.naive.naive_graph.NaiveGraph(edge_list: list, max_num_nodes: int)[source]¶
Bases:
DynamicGraphRepresent Dynamic Graphs using CSR in STGraph.
TODO: Add a paragraph explaining about GPMA in brief.
Example:¶
from stgraph.graph import NaiveGraph from stgraph.dataset import EnglandCovidDataLoader eng_covid = EnglandCovidDataLoader() G = NaiveGraph( edge_list = eng_covid.get_edges(), max_num_nodes = max(eng_covid.gdata["num_nodes"]), )
- param edge_list:
Edge list of the graph across all timestamps
- type edge_list:
list
- param max_num_nodes:
Maximum number of nodes present in the graph across all timestamps
- type max_num_nodes:
int
- TODO¶
- Type:
.
Module contents¶
Represent Dynamic Graphs using CSR in STGraph.