j6k4m8 / dotmotif-overloaded

An operator-overloading DSL for motif construction with DotMotif

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dotmotif-overloaded

An operator-overloading DSL for motif construction with DotMotif

m = MotifCreator()

ab = m.A >> m.B         # A connects to B
m.A |= m.C              # A does not connect to C
ab['foo'] = 'bar'       # the AB edge has an attribute `foo` equal to `bar`
m.A['baz'] >= 4         # the A vertex has an attribute `baz` gteq to 4

About

An operator-overloading DSL for motif construction with DotMotif


Languages

Language:Python 100.0%