Giter Site home page Giter Site logo

dgraph's People

Contributors

uplinkcoder avatar webdrake avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dgraph's Issues

isEdge and edgeID methods are suboptimal

The current implementations of isEdge and edgeID use a linear search. This should be replaced by a binary search that takes advantage of the sorting of head and tail indexes.

isVertex not exposed in CachedEdgeList

CachedEdgeList doesn't expose isVertex from IndexedEdgeList.
Adding the following to CachedEdgeList works:

bool isVertex(T : size_t)(in T v) @safe const nothrow pure
{
    return _graph.isVertex(v);
}

dub packaging

How about packaging for dub? This way Dgraph will be easier to discover and integrate.

Vertex/edge labels

Is it possible to label edges/vertices with arbitary data type? It'll be great to be able do so. E.g i want to represent path with graph and that graph should have vertices labeled with string type(like street name or whatever) and edges with int type(travel time). Ultimately it should be possible to instantinate these two types of labels(for edges and for vertices) with arbitrary type.

Imaginary code follows for better understandin what i mean.


// Vertex label type.
class Foo { ... };
// Edge label type.
enum Bar { ... };

auto graph = new Graph!(Foo, Bar)(...);

Head/tail are applied in opposition to standard terminology

Dgraph uses head and tail to refer to respectively, the nodes an edge points from and to. This is in opposition to standard terminology where the head of an edge is the head of the arrow -- i.e. the to vertex -- and the tail of the arrow is the vertex the edge points from.

Source: https://en.wikipedia.org/wiki/Graph_(mathematics)#Directed_graph

Given the mix-up over terminology, it might be better to replace current usage with unambiguous terms like from and to, noting their correspondence to other graph-theoretic terms in documentation.

Broken build

Hi, having issues with buiding on aa40b50.
Quite self explanatory i think.

โžœ Dgraph git:(master) make DC=ldmd2
ldmd2 -O -inline -ofgraphtest graphtest.d dgraph/.d dgraph/test/.d
dgraph/graph.d(172): Error: pure function 'edge' cannot call impure function 'zip'
dgraph/graph.d(172): Error: zip is not nothrow
dgraph/graph.d(171): Error: function dgraph.graph.G!(false).IndexedEdgeList.edge 'edge' is nothrow yet may throw
graphtest.d(42): Error: template instance dgraph.graph.G!(false) error instantiating
make: *** [graphtest] Error 1

By the way how does DGraph conpares to igraph in terms of speed?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.