Giter Club home page Giter Club logo

Comments (4)

gdevanla avatar gdevanla commented on July 21, 2024

@mikera Currently most of the algorithms are implemented with adjacency list, though this fact is abstracted away in the protocols. By representing we graphs as adjacency matrices we also might want to take advantage of the structure when it be efficient. Alternatively, if an instance of the graph is implemented as an adjacency matrix, it would makes sense to use some of the operations provided by core.matrix rather than have loom handle it.

In addition, may be we should consider making this dependency on core.matrix optional? I am also eager to to see loom extended to support operations on matrix representation of graphs.

Also, as part of some of the algorithms I have been adding, I would love to have core.matrix incorporated. That would help implement PageRank and Spectral analysis algorithms with fast matrix operations.

from loom.

mikera avatar mikera commented on July 21, 2024

I think it should be possible to have an optional loom.matrix namespace that depends on core.matrix but doesn't have it as an explicit dependency in the project.clj. That way you don't have to have core.matrix as a required dependency, but can still have the functionality available if people want it (they would need to add core.matrix as a dependency manually of course...)

Alternatively, a separate repo / library which adds the matrix based functionality would be a possibility that has both loom and core.matrix as dependencies.

I've done a couple of demos with matrix representations of graphs, e.g. a quick pagerank demo:

https://github.com/mikera/core.matrix/blob/develop/src/test/clojure/clojure/core/matrix/demo/pagerank.clj

from loom.

aysylu avatar aysylu commented on July 21, 2024

@mikera, I think your idea for making a separate loom.matrix library is excellent. That's what we've been doing for titanium and gorilla-repl integration.

This is very exciting, and I'm looking forward to seeing Loom represented in core.matrix!

from loom.

aysylu avatar aysylu commented on July 21, 2024

Please reopen the issue if there's anything else.

from loom.

Related Issues (20)

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.