func CustomGraph(nodes, edges, edgesFrom, edgesTo driver.Index) *Graph {
	return &Graph{
		nodes:     nodes,
		edges:     edges,
		edgesFrom: edgesFrom,
		edgesTo:   edgesTo,
	}
}
CustomGraph creates a new Graph instance with the given Index interface implementations
package dagger
import (
	"fmt"
	"github.com/autom8ter/dagger/constants"
	"github.com/autom8ter/dagger/driver"
	"github.com/autom8ter/dagger/util"
)
type Graph struct {
	nodes     driver.Index
	edges     driver.Index
	edgesFrom driver.Index
	edgesTo   driver.Index
}
func NewGraph() *Graph {
	return &Graph{
		nodes:     driver.NewInMemIndex(),
		edges:     driver.NewInMemIndex(),
		edgesFrom: driver.NewInMemIndex(),
		edgesTo:   driver.NewInMemIndex(),
	}
}