Creating a graph#
There are many ways to get data into Raphtory and start running analysis. In this section we cover three of the most versatile:
- Direct updating.
- Pandas Dataframe.
- Loading from a saved Raphtory graph.
To get started we first need to create a graph to store our data. Printing this graph will show it as empty with no nodes, edges or update times.
from raphtory import Graph
g = Graph()
print(g)
Output
Graph(number_of_nodes=0, number_of_edges=0, number_of_temporal_edges=0, earliest_time=None, latest_time=None)