rig.netlist.Net: Net data structure

class rig.netlist.Net(source, sinks, weight=1.0)[source]

A net represents connectivity from one vertex to many vertices.

Attributes:
source : vertex

The vertex which is the source of the net.

weight : float or int

The “strength” of the net, in application specific units.

sinks : list

A list of vertices that the net connects to.

__init__(source, sinks, weight=1.0)[source]

Create a new Net.

Parameters:
source : vertex
sinks : list or vertex

If a list of vertices is provided then the list is copied, whereas if a single vertex is provided then this used to create the list of sinks.

weight : float or int
__contains__(vertex)[source]

Test if a supplied vertex is a source or sink of this net.

__iter__()[source]

Iterate over all vertices in the net, starting with the source.

__weakref__

list of weak references to the object (if defined)