swh.graph.client module

exception swh.graph.client.GraphAPIError[source]

Bases: Exception

Graph API Error

class swh.graph.client.RemoteGraphClient(url, timeout=None)[source]

Bases: swh.core.api.RPCClient

Client to the Software Heritage Graph.

raw_verb_lines(verb, endpoint, **kwargs)[source]
get_lines(endpoint, **kwargs)[source]
stats()[source]
leaves(src, edges='*', direction='forward')[source]
neighbors(src, edges='*', direction='forward')[source]
visit_nodes(src, edges='*', direction='forward')[source]
visit_paths(src, edges='*', direction='forward')[source]
walk(src, dst, edges='*', traversal='dfs', direction='forward', limit=None)[source]
random_walk(src, dst, edges='*', direction='forward', limit=None)[source]
count_leaves(src, edges='*', direction='forward')[source]
count_neighbors(src, edges='*', direction='forward')[source]
count_visit_nodes(src, edges='*', direction='forward')[source]