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 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

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.

References mps_setup.append.

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 

◆ addEdge()

def cmssw_cycle_finder.Graph.addEdge (   self,
  edge 
)

◆ 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().