Skip to content

Graph EDA

All EDA methods require the APOC plugin to be installed in your Neo4j instance.


Node Label Frequency

Returns the frequency and relative frequency of all node labels in the graph.

df = graph.get_node_label_freq(database='mydb')

Node Label Frequency


Multi-Label Node Frequency

Returns the frequency of nodes that have more than one label.

df = graph.get_node_multilabel_freq(database='mydb')

Relationship Type Frequency

Returns the frequency and relative frequency of all relationship types.

df = graph.get_rela_type_freq(database='mydb')

Relationship Type Frequency


Relationship Source-Target Frequency

Returns the frequency of relationships broken down by source node label and target node label.

df = graph.get_rela_source_target_freq(database='mydb')

Relationship Source-Target Frequency


Node and Relationship Properties

Returns information about all node and relationship properties in the graph.

df = graph.get_properties(database='mydb')

Properties


Constraints

Lists all constraints defined in the graph.

df = graph.get_constraints(database='mydb')

Constraints


Indexes

Lists all indexes defined in the graph.

df = graph.get_indexes(database='mydb')

Indexes