image code gremlin hiragana = "あいうえおかきくけこさしすせそたちつてとなにぬねの" schema.vertexLabel("Letter").ifNotExists().partitionBy("id", Text).create(); schema.edgeLabel('row').ifNotExists().from('Letter').to('Letter').create()
image code jupyternotebook networkx import matplotlib.pyplot as plt import networkx as nx G = nx.cycle_graph(24) pos = nx.spring_layout(G, iterations=200)
image code gremlin schema.vertexLabel("Node").ifNotExists().partitionBy("id", Text).property("value", Text).create(); schema.edgeLabel('next').ifNotExists().from('Node').to('Node').create() schema.edgeLabel('prev').ifNotExists().from('Node').to('Node').create()
image code gremlin schema.vertexLabel("Op").ifNotExists().partitionBy("id", Text).property("value", Text).create(); schema.edgeLabel('next').ifNotExists().from('Op').to('Op').create() N1 = g.addV("Op").property("id", "a").property("value", "1").next();
image code jupyter notebook import matplotlib.pyplot as plt import networkx as nx try: import pygraphviz
image code jupyter notebook import matplotlib.pyplot as plt import networkx as nx G = nx.grid_2d_graph(5, 5) pos = nx.spring_layout(G, k=0.3)
image code jupyter notebook import matplotlib.pyplot as plt import networkx as nx G = nx.grid_2d_graph(5, 5) nx.draw(G)
image code jupyter notebook %matplotlib inline import matplotlib.pyplot as plt import networkx as nx G = nx.Graph()
image code gremlin schema.vertexLabel("Atom").ifNotExists().partitionBy("id", Text).property("name", Text).create(); schema.edgeLabel('bond').ifNotExists().from('Atom').to('Atom').create() O1 = g.addV("Atom").property("id", "O1").property("name", "O").next();
image code gremlin schema.vertexLabel("Key").ifNotExists().partitionBy("name", Text).create(); schema.vertexLabel("Code").ifNotExists().partitionBy("name", Text).create(); schema.edgeLabel('hit').ifNotExists().from('Code').to('Key').create()