Skip to content

Instantly share code, notes, and snippets.

@mhluongo
Created January 25, 2013 21:20
Show Gist options
  • Select an option

  • Save mhluongo/4637988 to your computer and use it in GitHub Desktop.

Select an option

Save mhluongo/4637988 to your computer and use it in GitHub Desktop.
import neo4django
from neo4django.db import models
class Preceding(models.NodeModel):
precedes_events = model.Relationship('Condition',reltype=neo4django.Outgoing.PRECEDES_CONDITION)
precedes_conditions = model.Relationship('Event', reltype=neo4django.Outgoing.PRECEDES_EVENT)
class Event(Preceding):
pass
class Condition(Preceding):
pass
class Actor(Preceding):
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment