cugraph_service_client.remote_graph.RemoteGraph#
- class cugraph_service_client.remote_graph.RemoteGraph(cgs_client, cgs_graph_id)[source]#
- Attributes:
edge_property_names
Return a Python list of edge property names.
edge_types
The set of edge type names
- graph_info
- has_properties
vertex_property_names
Return a Python list of vertex property names.
vertex_types
The set of vertex type names
Methods
add_edge_data
(dataframe, vertex_col_names[, ...])Add a dataframe describing edge properties to the PropertyGraph.
add_vertex_data
(dataframe, vertex_col_name)Add a dataframe describing vertex properties to the PropertyGraph.
annotate_dataframe
(df, G, edge_vertex_col_names)Add properties to df that represent the vertices and edges in graph G.
edges
([backend])- Parameters:
extract_subgraph
([create_using, selection, ...])Return a subgraph of the overall PropertyGraph containing vertices and edges that match a selection.
get_edge_data
([edge_ids, types, columns, ...])Return a dataframe containing edge properties for only the specified edge_ids, columns, and/or edge type, or all edge IDs if not specified.
get_num_edges
([type])Return the number of all edges or edges of a given type.
get_num_vertices
([type, include_edge_data])Return the number of all vertices or vertices of a given type.
get_vertex_data
([vertex_ids, types, ...])Gets a DataFrame containing vertex properties
get_vertices
([selection, backend])- Parameters:
renumber_edges_by_type
([prev_id_column, backend])Renumber edge IDs to be contiguous by type.
renumber_vertices_by_type
([prev_id_column, ...])Renumber vertex IDs to be contiguous by type.
select_edges
(expr)Evaluate expr and return a PropertySelection object representing the edges that match the expression.
select_vertices
(expr[, from_previous_selection])Evaluate expr and return a PropertySelection object representing the vertices that match the expression.
vertices_ids
()Alias for get_vertices()
has_isolated_vertices
is_bipartite
is_directed
is_multi_gpu
is_multigraph
is_multipartite
is_remote
is_weighted
number_of_edges
number_of_vertices
to_directed
to_undirected
Methods
__init__
(cgs_client, cgs_graph_id)add_edge_data
(dataframe, vertex_col_names[, ...])Add a dataframe describing edge properties to the PropertyGraph.
add_vertex_data
(dataframe, vertex_col_name)Add a dataframe describing vertex properties to the PropertyGraph.
annotate_dataframe
(df, G, edge_vertex_col_names)Add properties to df that represent the vertices and edges in graph G.
edges
([backend])- Parameters:
extract_subgraph
([create_using, selection, ...])Return a subgraph of the overall PropertyGraph containing vertices and edges that match a selection.
get_edge_data
([edge_ids, types, columns, ...])Return a dataframe containing edge properties for only the specified edge_ids, columns, and/or edge type, or all edge IDs if not specified.
get_num_edges
([type])Return the number of all edges or edges of a given type.
get_num_vertices
([type, include_edge_data])Return the number of all vertices or vertices of a given type.
get_vertex_data
([vertex_ids, types, ...])Gets a DataFrame containing vertex properties
get_vertices
([selection, backend])- Parameters:
has_isolated_vertices
()is_bipartite
()is_directed
()is_multi_gpu
()is_multigraph
()is_multipartite
()is_remote
()is_weighted
()number_of_edges
()number_of_vertices
()renumber_edges_by_type
([prev_id_column, backend])Renumber edge IDs to be contiguous by type.
renumber_vertices_by_type
([prev_id_column, ...])Renumber vertex IDs to be contiguous by type.
select_edges
(expr)Evaluate expr and return a PropertySelection object representing the edges that match the expression.
select_vertices
(expr[, from_previous_selection])Evaluate expr and return a PropertySelection object representing the vertices that match the expression.
to_directed
()to_undirected
()vertices_ids
()Alias for get_vertices()
Attributes
dst_col_name
edge_id_col_name
edge_property_names
Return a Python list of edge property names.
edge_types
The set of edge type names
graph_info
has_properties
src_col_name
type_col_name
vertex_col_name
vertex_property_names
Return a Python list of vertex property names.
vertex_types
The set of vertex type names
weight_col_name