Graphs Graph¶
-
class
Graph
¶ Creates a seamless property graph.
A seamless graph is a collection of vertex and edge lists stored as frames. This allows frame-like operations against graph data. Many frame methods are available to work with vertices and edges. Vertex and edge properties are stored as columns.
A seamless graph is better suited for bulk OLAP-type operations whereas a Titan graph is better suited to OLTP.
Attributes
edge_count Get the total number of edges in the graph. edges Edge frame collection name Set or get the name of the graph object. status Current graph life cycle status. vertex_count Get the total number of vertices in the graph. vertices Vertex frame collection Methods
__init__(self[, name, _info]) <Missing Doc> __init__(self, entity) <Missing Doc> annotate_degrees(self, output_property_name[, degree_option, ...]) Make new graph with degrees. annotate_weighted_degrees(self, output_property_name[, ...]) Calculates the weighted degree of each vertex with respect to an (optional) set of labels. clustering_coefficient(self[, output_property_name, ...]) Coefficient of graph with respect to labels. copy(self[, name]) Make a copy of the current graph. define_edge_type(self, label, src_vertex_label, dest_vertex_label) Define an edge type. define_vertex_type(self, label) Define a vertex type by label. export_to_titan(self[, new_graph_name]) Convert current graph to TitanGraph. graphx_connected_components(self, output_property) Implements the connected components computation on a graph by invoking graphx api. graphx_pagerank(self, output_property[, input_edge_labels, ...]) Determine which vertices are the most important. graphx_triangle_count(self, output_property[, input_edge_labels]) Number of triangles among vertices of current graph. ml.belief_propagation(self, prior_property, posterior_property) Classification on sparse data using Belief Propagation. ml.kclique_percolation(self, clique_size, ...) [ALPHA] Find groups of vertices with similar attributes.
-
__init__
(self, name=None)¶ <Missing Doc>
Parameters: name : str (default=None)
Name for the new graph. Default is None.