IMP  2.2.0
The Integrative Modeling Platform
_interaction_graph.py
1 import networkx as NX
2 from xml.dom import minidom, Node
3 #import xml.dom.ext as domExt
4 import sys
5 (NO_EDGE, EDGE_TYPE_SOLID) = range(2)
6 
7 
8 class InteractionGraph(NX.Graph):
9 
10  def init_graph(self, pairs):
11  self.load_dependencies(pairs)
12 
13  def load_dependencies(self, pairs):
14  for p in pairs:
15  compA = p[0]
16  compB = p[1]
17  self.add_edge(compA, compB)
boost::graph InteractionGraph
Definition: subset_graphs.h:33