# HONyx
HONyx is a Python package for generating and analyzing Higher-Order Networks models
- **Source:** https://gitlab.univ-nantes.fr/queyroi-f/honyx
- **Bug reports:** https://gitlab.univ-nantes.fr/queyroi-f/honyx/-/issues
Usage
-----
```python
>>> import honyx
>>> import networkx as nx
>>> sequences = [['a','b','r','a','c','a','d','a','b','r','a']]
>>> fon2 = honyx.generate_hon(sequences, "fix-order", max_order = 2)
>>> pos = nx.spring_layout(fon2)
>>> node_cols = ['blue' if len(v)==1 else 'green' for v in fon2.nodes()]
>>> nx.draw(fon2, pos = pos, with_labels=True, node_size=1000, node_color = node_cols, alpha=0.5)
>>> nx.draw_networkx_edge_labels(fon2, pos, edge_labels = nx.get_edge_attributes(fon2,'weight'))
```
![Order 2 Network](https://gitlab.univ-nantes.fr/queyroi-f/honyx/-/raw/main/docs/ex_fon2_readme.png "Order 2 Network")
```python
>>> honyx.pagerank_hon(fon2)
{'a': 0.40849881734049087,
'd': 0.14318783763461537,
'c': 0.1478373488011564,
'r': 0.15427265837422358,
'b': 0.14620333784951386}
```
Citing
------
To cite HONyx, please use the following publication:
Julie Queiros, François Queyroi (2023).
Construction de Réseaux d'Ordre Supérieur à partir de Traces : Méthodes et Outils.
https://hal.science/hal-04085138
[PDF](https://hal.science/hal-04085138/) [BibTeX](https://hal.science/hal-04085138v1/bibtex)
Install
-------
Using Python 3.8, 3.9, or 3.10.
Install the latest version of HONyx:
$ pip install honyx
Required dependancies include [NetworkX](https://networkx.org/), [Numpy](https://numpy.org/) and [Scipy](https://scipy.org/).
License
-------
Released under the MIT license (see `LICENSE.txt`)::
Copyright (C) 2004-2023 HONyx Developers
Julie Queiros <julie.queiros@univ-nantes.fr>
François Queyroi <francois.queyroi@univ-nantes.fr>
Simon Artus <simon.artus@etu.univ-nantes.fr>
Raw data
{
"_id": null,
"home_page": "",
"name": "honyx",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "Networks,Graph Theory,Mathematics,network,graph,discrete mathematics,math",
"author": "",
"author_email": "Julie Queiros <julie.queiros@univ-nantes.fr>, Simon Artus <simon.artus@etu.univ-nantes.fr>, Fran\u00e7ois Queyroi <francois.queyroi@univ-nantes.fr>",
"download_url": "https://files.pythonhosted.org/packages/18/78/377246cbf3c5d86f4a2af77593527f46ae6d92dfd3cbfbd2436eab7576e5/honyx-0.1.1.tar.gz",
"platform": "Linux",
"description": "# HONyx\n\nHONyx is a Python package for generating and analyzing Higher-Order Networks models\n\n- **Source:** https://gitlab.univ-nantes.fr/queyroi-f/honyx\n- **Bug reports:** https://gitlab.univ-nantes.fr/queyroi-f/honyx/-/issues\n\n\nUsage\n-----\n```python\n>>> import honyx\n>>> import networkx as nx\n\n>>> sequences = [['a','b','r','a','c','a','d','a','b','r','a']]\n>>> fon2 = honyx.generate_hon(sequences, \"fix-order\", max_order = 2)\n\n>>> pos = nx.spring_layout(fon2)\n>>> node_cols = ['blue' if len(v)==1 else 'green' for v in fon2.nodes()]\n>>> nx.draw(fon2, pos = pos, with_labels=True, node_size=1000, node_color = node_cols, alpha=0.5)\n>>> nx.draw_networkx_edge_labels(fon2, pos, edge_labels = nx.get_edge_attributes(fon2,'weight'))\n```\n![Order 2 Network](https://gitlab.univ-nantes.fr/queyroi-f/honyx/-/raw/main/docs/ex_fon2_readme.png \"Order 2 Network\")\n\n```python\n>>> honyx.pagerank_hon(fon2)\n{'a': 0.40849881734049087,\n 'd': 0.14318783763461537,\n 'c': 0.1478373488011564,\n 'r': 0.15427265837422358,\n 'b': 0.14620333784951386}\n```\n\nCiting\n------\n\nTo cite HONyx, please use the following publication:\n\n Julie Queiros, Fran\u00e7ois Queyroi (2023). \n Construction de R\u00e9seaux d'Ordre Sup\u00e9rieur \u00e0 partir de Traces : M\u00e9thodes et Outils. \n https://hal.science/hal-04085138 \n\n[PDF](https://hal.science/hal-04085138/) [BibTeX](https://hal.science/hal-04085138v1/bibtex)\n\n\nInstall\n-------\nUsing Python 3.8, 3.9, or 3.10.\n\nInstall the latest version of HONyx:\n\n $ pip install honyx\n\nRequired dependancies include [NetworkX](https://networkx.org/), [Numpy](https://numpy.org/) and [Scipy](https://scipy.org/).\n\nLicense\n-------\n\nReleased under the MIT license (see `LICENSE.txt`)::\n\n Copyright (C) 2004-2023 HONyx Developers\n Julie Queiros <julie.queiros@univ-nantes.fr>\n Fran\u00e7ois Queyroi <francois.queyroi@univ-nantes.fr>\n Simon Artus <simon.artus@etu.univ-nantes.fr>\n",
"bugtrack_url": null,
"license": "",
"summary": "Python package for creating and analyzing Higher-order networks from sequential dataset",
"version": "0.1.1",
"project_urls": {
"Bug Tracker": "https://gitlab.univ-nantes.fr/queyroi-f/honyx/-/issues",
"Homepage": "https://gitlab.univ-nantes.fr/queyroi-f/honyx",
"Source Code": "https://gitlab.univ-nantes.fr/queyroi-f/honyx"
},
"split_keywords": [
"networks",
"graph theory",
"mathematics",
"network",
"graph",
"discrete mathematics",
"math"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "73a7b1f551d59b5af0be60283e79d4b8596199c9a0dbca073f731ad8a37d74ab",
"md5": "890899c8d97d2f87e312665724924155",
"sha256": "81db1509205fc663f787f84edd59aec977c6b6089e679c6ec351dfbdab58fd14"
},
"downloads": -1,
"filename": "honyx-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "890899c8d97d2f87e312665724924155",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 21173,
"upload_time": "2024-02-02T07:54:34",
"upload_time_iso_8601": "2024-02-02T07:54:34.919477Z",
"url": "https://files.pythonhosted.org/packages/73/a7/b1f551d59b5af0be60283e79d4b8596199c9a0dbca073f731ad8a37d74ab/honyx-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1878377246cbf3c5d86f4a2af77593527f46ae6d92dfd3cbfbd2436eab7576e5",
"md5": "e0807d3d6dac824c13b329344ad9b679",
"sha256": "980ba13fa2c7c5d53c7c6449025a63bac52c946283c16acc3efc48ca70ee12f3"
},
"downloads": -1,
"filename": "honyx-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "e0807d3d6dac824c13b329344ad9b679",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 424075,
"upload_time": "2024-02-02T07:54:37",
"upload_time_iso_8601": "2024-02-02T07:54:37.282878Z",
"url": "https://files.pythonhosted.org/packages/18/78/377246cbf3c5d86f4a2af77593527f46ae6d92dfd3cbfbd2436eab7576e5/honyx-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-02 07:54:37",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "honyx"
}