import networkx as NX
class Bag(object):
def __init__(self, **props):
self.props = props
def create_graph():
g = NX.XDiGraph()
return g
N = Bag(
id='',
layer='',
visible='',
type='',
pos=(),
width=,
height=,
line_color='',
line_width=,
line_style=,
numcp=,
border_width=,
border_color='',
inner_color='',
show_background='
',
poly_points=[
(
),
]
)
g.add_node(N)
g.add_edge(N
,
N
)