rnaglib.algorithms.extract_graphlet

rnaglib.algorithms.extract_graphlet(graph, n, size=1, label='LW')[source]

Small util to extract a graphlet around a node

Parameters:
  • graph – Nx graph

  • n – a node in the graph

  • size – The depth to consider

Returns:

The graphlet as a copy