Designing graph

FIXME Transform it to Scala code

def g = TinkerGraph.open()
def jon = g.addVertex(T.label, 'person', 'name', 'jon')
def bill = g.addVertex(T.label, 'person', 'name', 'bill')
def jane = g.addVertex(T.label, 'person', 'name', 'jane')

jon.addEdge('knows', bill)
bill.addEdge('knows', jane)

Demo a simple traversing using has, outE, inV.

results matching ""

    No results matching ""