cgspan-mining-1.0.1


توضیحات

Implementation of close frequent subgraph mining algorithm cgSpan
ویژگی مقدار
سیستم عامل OS Independent
نام فایل cgspan-mining-1.0.1
نام cgspan-mining
نسخه کتابخانه 1.0.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Naazish Sheikh
ایمیل نویسنده Naazish.Sheikh@gmail.com
آدرس صفحه اصلی https://github.com/NaazS03/cgSpan
آدرس اینترنتی https://pypi.org/project/cgspan-mining/
مجوز -
# <div align = center>cgSpan</div> **cgSpan** is an algorithm for mining closed frequent subgraphs. This implementation of cgSpan is built using an existing implementation for gSpan. **gSpan** is an algorithm for mining frequent subgraphs. This program implements cgSpan with Python. The repository on GitHub is [https://github.com/NaazS03/cgSpan](https://github.com/NaazS03/cgSpan) The gSpan implementation referenced by this program can be found on GitHub at [https://github.com/betterenvi/gSpan](https://github.com/betterenvi/gSpan). ### Undirected Graphs This program supports undirected graphs. ### How to install This program supports **Python 3**. ##### Method 1 Install this project using pip: ```sh pip install cgspan-mining ``` ##### Method 2 First, clone the project: ```sh git clone https://github.com/NaazS03/cgSpan.git cd cgSpan ``` You can ***optionally*** install this project as a third-party library so that you can run it under ***any*** path. ```sh python setup.py install ``` ### How to run The command is: ```sh python -m cgspan_mining [-s min_support] [-n num_graph] [-l min_num_vertices] [-u max_num_vertices] [-v True/False] [-p True/False] [-w True/False] [-h] database_file_name ``` ##### Some examples - Read graph data from ./graphdata/graph.data, and mine closed subgraphs given min support is 5000 ``` python -m cgspan_mining -s 5000 ./graphdata/graph.data ``` - Read graph data from ./graphdata/graph.data, mine closed subgraphs given min support is 5000, and visualize these frequent subgraphs(matplotlib and networkx are required) ``` python -m cgspan_mining -s 5000 -p True ./graphdata/graph.data ``` - Print help info ``` python -m cgspan_mining -h ``` ### Reference - [CloseGraph Paper](https://sites.cs.ucsb.edu/~xyan/papers/CloseGraph.pdf) CloseGraph: Mining Close Frequent Graph Patterns, by X. Yan and J.Han. - [gSpan Paper](http://www.cs.ucsb.edu/~xyan/papers/gSpan-short.pdf) gSpan: Graph-Based Substructure Pattern Mining, by X. Yan and J. Han. Proc. 2002 of Int. Conf. on Data Mining (ICDM'02).


نحوه نصب


نصب پکیج whl cgspan-mining-1.0.1:

    pip install cgspan-mining-1.0.1.whl


نصب پکیج tar.gz cgspan-mining-1.0.1:

    pip install cgspan-mining-1.0.1.tar.gz