Graph Profiler

Class and functions to calculate and profile properties of graph data.

class dataprofiler.profilers.graph_profiler.GraphProfiler(data, options=None)

Bases: object

GraphProfiler class.

Creates a profile describing a graph dataset Statistical properties of graph

Initialize Graph Profiler.

Parameters
  • data – data

  • options (GraphOptions) – Options for the Graph Profiler

times

Properties

property profile

Return the profile of the graph.

Returns

the profile of the graph in data

diff(other_profile, options=None)

Find the differences for two unstructured text profiles.

Parameters
  • other_profile (GraphProfiler) – profile to find the difference with

  • options (dict) – options for diff output

Returns

the difference between profiles

Return type

dict

report(remove_disabled_flag=False)

Report on profile attribute of the class.

Pop value from self.profile if key not in self.__calculations

update(graph)

Update the graph profile.

Parameters

data (NetworkX Graph) – networkx graph

Returns

None