Re: Graph theory ??

2015-06-02 Thread Rafael E. Ferrero
Thanks Erik, Defining custom actions its what i try to do!! because, the user can add some custom type of Action and he need to specify what to do with. With this, the user can perform his own graph and rules to control the vertex. For example, a Contact of the business can be a Provider or a

Re: Graph theory ??

2015-06-02 Thread Erik Cederstrand
Hi Rafael, Assuming you have a static and limited set of actions, and they can only be defined programmatically, I would do something like this: class Vertex(models.Model): some_field = models.CharField() class Edge(models.Model): from = models.ForeignKey(Vertex,

Graph theory ??

2015-06-02 Thread Rafael E. Ferrero
Hello everyone, I think to do an app where i would save a directed graph. The vertex and edges there must be dinamics. The vertex can represent some Tag or Category... or something. The edge who links the vertex can be N between two vertex and represent some event or action... and let me explain