IMP logo
IMP Reference Guide  develop.18ca3ba1ae,2021/02/28
The Integrative Modeling Platform
IMP::PythonDirectedGraph Class Reference

#include <IMP/python_only.h>

Detailed Description

The boost graphs used on the C++ side in IMP cannot easily be exported to python. Instead we provide a simple graph wrapper and a set of helper functions.

Each node of the graph has an associated vertex name, the exact type of which depends on the graph.

This class is only available in Python.

Definition at line 32 of file python_only.h.

Public Member Functions

void add_edge (VertexDescriptor, VertexDescriptor)
VertexDescriptor add_vertex (VertexName)
VertexDescriptors get_in_neighbors (VertexDescriptor) const
VertexDescriptors get_out_neighbors (VertexDescriptor) const
VertexName get_vertex_name (VertexDescriptor v) const
Vertices get_vertices () const
void remove_vertex (VertexDescriptor)
void show (std::ostream &out=std::cout) const
 Show the graph in the graphviz format. More...

Member Function Documentation

void IMP::PythonDirectedGraph::show ( std::ostream &  out = std::cout) const

Show the graph in the graphviz format.

The vertices are not output in order, but have their indices shown.

The documentation for this class was generated from the following file: