DynamicGraph

class stgraph.graph.DynamicGraph(edge_list: list, max_num_nodes: int)[source]

Bases: STGraphBase

Represent Dynamic Graphs in STGraph.

This abstract class outlines the interface for defining a dynamic graph used in STGraph. As of now the dynamic graph is implemented using the following graph representation format:

  1. Compressed Sparse Row (CSR)

  2. Packed Compressed Sparse Row (PCSR)

  3. GPMA

Please note that this documentation is still work in progress.

get_backward_graph(timestamp: int) None[source]

TODO:.

get_graph(timestamp: int) None[source]

TODO:.

get_ndata(field: str) any[source]

TODO:.

get_num_edges() int[source]

TODO:.

get_num_nodes() int[source]

TODO:.

abstract in_degrees() np.ndarray[source]

TODO:.

abstract out_degrees() np.ndarray[source]

TODO:.

reset_graph() None[source]

TODO:.

set_ndata(field: str, val: any) None[source]

TODO:.