src/tools/benchmark_tool/benchmark_tool/rqt_graph/rosgraph2_impl.py
def add(self, edge):
        """
        Add an edge to our internal representation. not multi-thread safe.

        @param edge: edge to add
        @type  edge: Edge
        """
        # see note in __init__
        def update_map(edge_map, key, edge):
            if key in edge_map:
                edges = edge_map[key]
                if edge not in edges:
                    edges.append(edge)
                    return True
                else:
                    return False
            else:
                edge_map[key] = [edge]
                return True

        updated = update_map(self.edges_by_start, edge.key, edge)
        updated = update_map(self.edges_by_end, edge.rkey, edge) or updated
        return updated

        Add an edge to our internal representation. not multi-thread safe.

        @param edge: edge to add
        @type  edge: Edge
        
Add an edge to our internal representation. not multi-thread safe.
Add an edge to our internal representation . not multi - thread safe .
def add(self, edge):
        def update_map(edge_map, key, edge):
            if key in edge_map:
                edges = edge_map[key]
                if edge not in edges:
                    edges.append(edge)
                    return True
                else:
                    return False
            else:
                edge_map[key] = [edge]
                return True
        updated = update_map(self.edges_by_start, edge.key, edge)
        updated = update_map(self.edges_by_end, edge.rkey, edge) or updated
        return updated
def add ( self , edge ) : def update_map ( edge_map , key , edge ) : if key in edge_map : edges = edge_map [ key ] if edge not in edges : edges . append ( edge ) return True else : return False else : edge_map [ key ] = [ edge ] return True updated = update_map ( self . edges_by_start , edge . key , edge ) updated = update_map ( self . edges_by_end , edge . rkey , edge ) or updated return updated
Add an edge to our internal representation.
Add an edge to our internal representation .
"""
        Add an edge to our internal representation. not multi-thread safe.

        @param edge: edge to add
        @type  edge: Edge
        """ # see note in __init__
self
edge
edge to add
edge to add