Dateien nach "mod/butadien" hochladen
This commit is contained in:
parent
f8c5f76531
commit
3020cf8ca3
@ -22,7 +22,9 @@ butadien = Graph.fromGMLString("""graph [
|
|||||||
edge [ source 3 target 9 label "-" ]
|
edge [ source 3 target 9 label "-" ]
|
||||||
]""", name="Butadien")
|
]""", name="Butadien")
|
||||||
|
|
||||||
pentadien = Graph.fromGMLString("""graph [
|
#pentadien = Graph.fromGMLString(
|
||||||
|
"""graph
|
||||||
|
[
|
||||||
node [ id 0 label "C" ]
|
node [ id 0 label "C" ]
|
||||||
node [ id 1 label "C" ]
|
node [ id 1 label "C" ]
|
||||||
node [ id 2 label "C" ]
|
node [ id 2 label "C" ]
|
||||||
@ -48,7 +50,9 @@ pentadien = Graph.fromGMLString("""graph [
|
|||||||
edge [ source 9 target 10 label "-" ]
|
edge [ source 9 target 10 label "-" ]
|
||||||
edge [ source 9 target 11 label "-" ]
|
edge [ source 9 target 11 label "-" ]
|
||||||
edge [ source 9 target 12 label "-" ]
|
edge [ source 9 target 12 label "-" ]
|
||||||
]""", name="Pentadien")
|
]
|
||||||
|
"""
|
||||||
|
#, name="Pentadien")
|
||||||
|
|
||||||
restswap = Rule.fromGMLString(
|
restswap = Rule.fromGMLString(
|
||||||
"""rule [
|
"""rule [
|
||||||
@ -111,7 +115,7 @@ dg = DG(graphDatabase=inputGraphs)
|
|||||||
dg.build().execute(
|
dg.build().execute(
|
||||||
addSubset(inputGraphs)
|
addSubset(inputGraphs)
|
||||||
>> rightPredicate[
|
>> rightPredicate[
|
||||||
lambda d: all(g.vLabelCount("C") <= 6 for g in d.right)
|
lambda d: all(g.vLabelCount("C") <= 10 for g in d.right)
|
||||||
](
|
](
|
||||||
repeat(revive(inputRules)) #Revive not necessary
|
repeat(revive(inputRules)) #Revive not necessary
|
||||||
)
|
)
|
||||||
@ -122,11 +126,11 @@ postSection("Product Graphs")
|
|||||||
for a in dg.vertices:
|
for a in dg.vertices:
|
||||||
a.graph.print()
|
a.graph.print()
|
||||||
|
|
||||||
flowAutocata = Flow(dg)
|
#flow = Flow(dg)
|
||||||
flowAutocata.addSource(pentadien)
|
#flow.addSource(butadien)
|
||||||
flowAutocata.findSolutions()
|
#flow.findSolutions()
|
||||||
flowAutocata.solutions.list()
|
#flow.solutions.list()
|
||||||
flowAutocata.solutions.print(flowPrinter)
|
#flow.solutions.print(flowPrinter)
|
||||||
|
|
||||||
|
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|||||||
BIN
mod/butadien/summaryButadien10C.pdf
Normal file
BIN
mod/butadien/summaryButadien10C.pdf
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user