In the last post, we showed the character relationship for the Game of Thrones by using NetworkX and Gephi. In this post, we will show you how to access data in Nebula Graph by using NetworkX.

NetworkX

NetworkX is a modeling tool for the graph theory and complex networks written by Python. With its rich, easy-to-use built-in graphs and analysis algorithms, it’s easy to perform complex network analysis and simulation modeling.

In NetworkX, a graph (network) is a collection of nodes together with a collection of edges. Attributes are often associated with nodes and/or edges and are optional. Nodes represent data. Edges are uniquely determined by two nodes, representing the relationship between the two nodes. Nodes and edges can also have many attributes so that more information can be stored.

The following four basic graph types are provided in NetworkX:

  • Graph: undirected graph.
  • DiGraph: directed graph.
  • MultiGraph: A flexible graph class that allows multiple undirected edges between pairs of nodes.
  • MultiDiGraph: A directed version of a MultiGraph.

#graph database #data analysis #game of thrones #nebula graph #networkx

Analyzing Relationships in Game of Thrones With NetworkX, Gephi.
2.60 GEEK