GithubHelp home page GithubHelp logo

standardgalactic / mugrem Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anvaka/mugrem

0.0 2.0 0.0 516 KB

multidimensional graph embedding

Home Page: https://anvaka.github.io/mugrem/index.html?dim=4

License: MIT License

JavaScript 99.90% HTML 0.10%

mugrem's Introduction

mugrem

This is just an experiment: I want to embed higher dimensional graphs into lower dimension. E.g. layout graph with 4D algorithm, use first three dimensions to render graph in (X, Y, Z) space, and use fourth dimension to set color of a node.

examples

The graph layout is computed in four-dimensional and five-dimensional spaces. Then I render them in 3D, using fourth dimension as a node color. The smaller the numerical value of the fourth coordinate - the darker is the node.

In the 5-dimensional case, only four coordinates are used. Click on images to see interactive version.

Graph 4-D Layout 5-D Layout
HB/bcsstk26 4d graph layout of HB/bcsstk26 5d graph layout of HB/bcsstk26
TOKAMAK/utm300 4d layout of TOKAMAK/utm300 4d layout of TOKAMAK/utm300

Once the graph is rendered in 5d, we can switch between two available extra dimensions, without affecting node placement. Here is what I found for HB/bcsstk26:

switch

As you can see, the switch affects different parts of a graph, which means that nodes that are closer to us in the fourth dimension are farther from us in the fifth, and vice versa.

The graphs are taken from the UFL dataset.

todo

Consider using PCA for projecting multidimensional layouts to 3d

license

MIT

mugrem's People

Contributors

anvaka avatar

Watchers

 avatar  avatar

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.