CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Static Private Member Functions
cmssw_cycle_finder.Graph Class Reference
Inheritance diagram for cmssw_cycle_finder.Graph:

Public Member Functions

def __init__ (self, edges)
 
def addEdge (self, edge)
 
def build_adjacency_list (self)
 

Public Attributes

 adj
 
 edges
 

Static Private Member Functions

def _build_adjacency_list (edges)
 

Detailed Description

Definition at line 6 of file cmssw_cycle_finder.py.

Constructor & Destructor Documentation

◆ __init__()

def cmssw_cycle_finder.Graph.__init__ (   self,
  edges 
)

Definition at line 7 of file cmssw_cycle_finder.py.

7  def __init__(self, edges):
8  self.edges = edges
9 

Member Function Documentation

◆ _build_adjacency_list()

def cmssw_cycle_finder.Graph._build_adjacency_list (   edges)
staticprivate

Definition at line 11 of file cmssw_cycle_finder.py.

11  def _build_adjacency_list(edges):
12  adj = collections.defaultdict(list)
13  for edge in edges:
14  adj[edge[0]].append(edge[1])
15  return adj
16 

References mps_setup.append.

◆ addEdge()

def cmssw_cycle_finder.Graph.addEdge (   self,
  edge 
)

Definition at line 17 of file cmssw_cycle_finder.py.

17  def addEdge(self,edge):
18  self.edges.append(edge)
19 

References mps_setup.append, cmssw_cycle_finder.Graph.edges, ecaldqm::binning::AxisSpecs.edges, and plotscripts.SawTeethFunction.edges.

◆ build_adjacency_list()

def cmssw_cycle_finder.Graph.build_adjacency_list (   self)

Definition at line 20 of file cmssw_cycle_finder.py.

20  def build_adjacency_list(self):
21  self.adj = Graph._build_adjacency_list(self.edges)
22 
23 

Member Data Documentation

◆ adj

cmssw_cycle_finder.Graph.adj

Definition at line 21 of file cmssw_cycle_finder.py.

◆ edges

cmssw_cycle_finder.Graph.edges

Definition at line 8 of file cmssw_cycle_finder.py.

Referenced by cmssw_cycle_finder.Graph.addEdge().

mps_setup.append
append
Definition: mps_setup.py:85