{"id":15706346,"url":"https://github.com/rodrigo-arenas/graph-embeddings","last_synced_at":"2025-09-11T22:36:17.125Z","repository":{"id":40537746,"uuid":"507336214","full_name":"rodrigo-arenas/Graph-Embeddings","owner":"rodrigo-arenas","description":"Graph and Nodes embeddings for downstream tasks","archived":false,"fork":false,"pushed_at":"2022-07-14T15:09:51.000Z","size":331,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-17T04:14:52.066Z","etag":null,"topics":["deep-learning","embeddings","graph-algorithms","graph-machine-learning","graph-neural-networks","graph2vec","machine-learning","networkx","neural-networks","node2vec","stellargraph-library"],"latest_commit_sha":null,"homepage":"https://graph-embeddings.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rodrigo-arenas.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-25T14:42:45.000Z","updated_at":"2023-07-25T01:37:29.000Z","dependencies_parsed_at":"2022-07-14T23:16:57.210Z","dependency_job_id":null,"html_url":"https://github.com/rodrigo-arenas/Graph-Embeddings","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rodrigo-arenas/Graph-Embeddings","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigo-arenas%2FGraph-Embeddings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigo-arenas%2FGraph-Embeddings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigo-arenas%2FGraph-Embeddings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigo-arenas%2FGraph-Embeddings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodrigo-arenas","download_url":"https://codeload.github.com/rodrigo-arenas/Graph-Embeddings/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigo-arenas%2FGraph-Embeddings/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274718939,"owners_count":25337236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deep-learning","embeddings","graph-algorithms","graph-machine-learning","graph-neural-networks","graph2vec","machine-learning","networkx","neural-networks","node2vec","stellargraph-library"],"created_at":"2024-10-03T20:22:24.037Z","updated_at":"2025-09-11T22:36:17.100Z","avatar_url":"https://github.com/rodrigo-arenas.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. -*- mode: rst -*-\n\n|Tests|_ |Codecov|_ |PythonVersion|_ |PyPi|_ |Docs|_\n\n.. |Tests| image:: https://github.com/rodrigo-arenas/graph-embeddings/actions/workflows/ci-tests.yml/badge.svg?branch=main\n.. _Tests: https://github.com/rodrigo-arenas/Graph-Embeddings/actions/workflows/ci-tests.yml\n\n.. |Codecov| image:: https://codecov.io/gh/rodrigo-arenas/graph-embeddings/branch/main/graphs/badge.svg?branch=main\u0026service=github\n.. _Codecov: https://codecov.io/github/rodrigo-arenas/graph-embeddings?branch=main\n\n.. |PythonVersion| image:: https://img.shields.io/badge/python-3.8-blue\n.. _PythonVersion : https://www.python.org/downloads/\n\n.. |PyPi| image:: https://badge.fury.io/py/graph-embeddings.svg\n.. _PyPi: https://badge.fury.io/py/graph-embeddings\n\n.. |Docs| image:: https://readthedocs.org/projects/graph-embeddings/badge/?version=latest\n.. _Docs: https://graph-embeddings.readthedocs.io/en/latest/?badge=latest\n\n.. |Contributors| image:: https://contributors-img.web.app/image?repo=rodrigo-arenas/graph-embeddings\n.. _Contributors: https://github.com/rodrigo-arenas/Graph-Embeddings/graphs/contributors\n\nGraph-Embeddings\n################\nGraph embeddings for downstream tasks\n\n.. image:: https://raw.githubusercontent.com/rodrigo-arenas/Graph-Embeddings/main/docs/images/graph_embeddings.png?raw=true\n\nInstallation:\n#############\n\nIt's advised to install graph-embeddings using a virtual env, inside the env use::\n\n   pip install graph-embeddings\n\nAlgorithms:\n###########\n\nStackedNode2Vec\n---------------\n\nComputes the Node2Vec representation of each node in a set of graphs.\n\nExample:\n\n.. code-block:: python\n\n   import networkx as nx\n   from graph_embeddings.algorithms import StackedNode2Vec\n\n   g1 = nx.DiGraph()\n   g2 = nx.DiGraph()\n   g1.add_edges_from([(\"A\", \"B\"), (\"B\", \"C\"), (\"C\", \"B\"), (\"B\", \"E\")])\n   g2.add_edges_from([(\"A\", \"B\"), (\"B\", \"D\"), (\"D\", \"C\"), (\"C\", \"D\")])\n\n   graphs = [g1, g2]\n   embedding_model = StackedNode2Vec()\n   embedding_model.fit(graphs)\n\n   embedding_model.get_embeddings()  # ndarray with shape (2, 5, 128) - graphs, nodes, embedding_size\n   embedding_model.get_dense_embeddings()  # ndarray with shape (2, 640) - graphs, nodes*embedding_size\n\n\nChangelog\n#########\n\nSee the `changelog \u003chttps://graph-embeddings.readthedocs.io/en/latest/release_notes.html\u003e`__\nfor notes on the changes of graph-embeddings\n\nImportant links\n###############\n\n- Official source code repo: https://github.com/rodrigo-arenas/graph-embeddings/\n- Download releases: https://pypi.org/project/graph-embeddings/\n- Issue tracker: https://github.com/rodrigo-arenas/graph-embeddings/issues\n- Stable documentation: https://graph-embeddings.readthedocs.io/\n\nSource code\n###########\n\nYou can check the latest development version with the command::\n\n   git clone https://github.com/rodrigo-arenas/graph-embeddings.git\n\nInstall the development dependencies::\n  \n  pip install -r dev-requirements.txt\n  \nCheck the latest in-development documentation: https://graph-embeddings.readthedocs.io/en/latest/\n\nContributing\n############\n\nContributions are more than welcome!\nThere are several opportunities on the ongoing project, so please get in touch if you would like to help out.\nMake sure to check the current issues and also\nthe `Contribution guide \u003chttps://github.com/rodrigo-arenas/graph-embeddings/blob/main/CONTRIBUTING.md\u003e`_.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigo-arenas%2Fgraph-embeddings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodrigo-arenas%2Fgraph-embeddings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigo-arenas%2Fgraph-embeddings/lists"}