src/Budkit/Datastore/Model/Graph.php
public static function getInstance($graphUID = NULL, $nodes = array(), $edges = array(), $directed = FALSE)
    {
        if (is_object(static::$instance[$graphUID]) && is_a(static::$instance[$graphUID], 'Graph'))
            return static::$instance[$graphUID];
        $graph = new self($nodes, $edges, $directed, $graphUID);
        if (!empty($graphUID)) {
            static::$instance[$graphUID] = &$graph;
        }
        return $graph;
    }
public static function getInstance($graphUID = NULL, $nodes = array(), $edges = array(), $directed = FALSE)
    {
        if (is_object(static::$instance[$graphUID]) && is_a(static::$instance[$graphUID], 'Graph'))
            return static::$instance[$graphUID];
        $graph = new self($nodes, $edges, $directed, $graphUID);
        if (!empty($graphUID)) {
            static::$instance[$graphUID] = &$graph;
        }
        return $graph;
    }
public static function getInstance ( $ graphUID = NULL , $ nodes = array ( ) , $ edges = array ( ) , $ directed = FALSE ) { if ( is_object ( static :: $ instance [ $ graphUID ] ) && is_a ( static :: $ instance [ $ graphUID ] , 'Graph' ) ) return static :: $ instance [ $ graphUID ] ; $ graph = new self ( $ nodes , $ edges , $ directed , $ graphUID ) ; if ( ! empty ( $ graphUID ) ) { static :: $ instance [ $ graphUID ] = & $ graph ; } return $ graph ; }
Returns and instantiated Instance of the graph class

NOTE: As of PHP5.3 it is vital that you include constructors in your class
especially if they are defined under a namespace. A method with the same
name as the class is no longer considered to be its constructor

@staticvar object $instance
@property-read object $instance To determine if class was previously instantiated
@property-write object $instance

@return object graph
Returns and instantiated Instance of the graph class