All Projects → shiruipan → Graph_datasets

shiruipan / Graph_datasets

A Repository of Benchmark Graph Datasets for Graph Classification (31 Graph Datasets In Total).

Projects that are alternatives of or similar to Graph datasets

Deepgraph
Analyze Data with Pandas-based Networks. Documentation:
Stars: ✭ 232 (+25.41%)
Mutual labels:  graph-database, graphs
graph datasets
A Repository of Benchmark Graph Datasets for Graph Classification (31 Graph Datasets In Total).
Stars: ✭ 227 (+22.7%)
Mutual labels:  graphs, graph-database
Neography
A thin Ruby wrapper to the Neo4j Rest API
Stars: ✭ 606 (+227.57%)
Mutual labels:  graph-database, graphs
Timeline Plus
Timeline - chronological visualization of your data
Stars: ✭ 140 (-24.32%)
Mutual labels:  graphs
Hubot Grafana
📈🤖 Query Grafana dashboards
Stars: ✭ 141 (-23.78%)
Mutual labels:  graphs
Topic Db
TopicDB is a topic maps-based semantic graph store (using PostgreSQL for persistence)
Stars: ✭ 164 (-11.35%)
Mutual labels:  graph-database
Grano
A toolkit for mapping networks of political and economic influence through diverse types of entities and their relations. Accessible at http://granoproject.org
Stars: ✭ 181 (-2.16%)
Mutual labels:  graphs
Gremlin Orm
gremlin-orm is an ORM for graph databases in Node.js
Stars: ✭ 136 (-26.49%)
Mutual labels:  graph-database
Matplotplusplus
Matplot++: A C++ Graphics Library for Data Visualization 📊🗾
Stars: ✭ 2,433 (+1215.14%)
Mutual labels:  graphs
Pyley
Python package for an open-source graph database Cayley
Stars: ✭ 151 (-18.38%)
Mutual labels:  graph-database
Neo4j Php Ogm
Neo4j Object Graph Mapper for PHP
Stars: ✭ 151 (-18.38%)
Mutual labels:  graph-database
Flowchart Fun
Easily generate flowcharts and diagrams from text ⿻
Stars: ✭ 2,311 (+1149.19%)
Mutual labels:  graphs
Neo4j Etl
Data import from relational databases to Neo4j.
Stars: ✭ 165 (-10.81%)
Mutual labels:  graph-database
Data science blogs
A repository to keep track of all the code that I end up writing for my blog posts.
Stars: ✭ 139 (-24.86%)
Mutual labels:  graphs
Agensgraph Extension
A graph database extension for PostgreSQL
Stars: ✭ 170 (-8.11%)
Mutual labels:  graph-database
Life Calendar
A look at the big picture.
Stars: ✭ 139 (-24.86%)
Mutual labels:  graphs
Ecosys
TigerGraph Ecosystem
Stars: ✭ 166 (-10.27%)
Mutual labels:  graph-database
Stellargraph
StellarGraph - Machine Learning on Graphs
Stars: ✭ 2,235 (+1108.11%)
Mutual labels:  graphs
Arches
Arches is a web platform for creating, managing, & visualizing geospatial data. Arches was inspired by the needs of the Cultural Heritage community, particularly the widespread need of organizations to build & manage cultural heritage inventories
Stars: ✭ 146 (-21.08%)
Mutual labels:  graph-database
Neo4j 3d Force Graph
Experiments with Neo4j & 3d-force-graph https://github.com/vasturiano/3d-force-graph
Stars: ✭ 159 (-14.05%)
Mutual labels:  graph-database

A Repository of Benchmark Graph Datasets for Graph Classification

Introduction to Graph Classification

Recent years have witnessed an increasing number of applications involving objects with structural relationships, including chemical compounds in Bioinformatics, brain networks, image structures, and academic citation networks. For these applications, graph is a natural and powerful tool for modeling and capturing dependency relationships between objects.

Unlike conventional data, where each instance is represented in a feature-value vector format, graphs exhibit node–edge structural relationships and have no natural vector representation. This challenge has motivated many graph classification algorithms in recent years. Given a set of training graphs, each associated with a class label, graph classification aims to learn a model from the training graphs to predict the unseen graphs in future. The following picture shows the difference betweeb classification on vector data and graph data.

(Graph Classification)

Dataset Summaization

This repository maintains 31 benchmark graph datasets, which are widely used for graph classification. The graph datasets consist of:

  • chemical compounds
  • citation networks
  • social networks
  • brain networks

The chemical compound graph datasets are in “.sdf” or “.smi” format, and other graph dataset are represented as “.nel” format. All these graph datasets can be handle by frequent subgraph miner packages such as Moss [1] or other softwares. These graphs can be easily converted to other formats handled by Matlab or other softwares. A summarization of our graph datasets is given in Table 1.

Fig 1 (Graph Datasets)

If you used the dataset, please cite the related papers properly.

1. NCI Anti-cancer activity prediction data (NCI)

Description:

The NCI graph datasets are commonly used as the benchmark for graph classification. Each NCI dataset belongs to a bioassay task for anticancer activity prediction, where each chemical compound is represented as a graph, with atoms representing nodes and bonds as edges. A chemical compound is positive if it is active against the corresponding cancer, or negative otherwise. Table 1 summarizes the NCI graph data we download from PubChem. We have removed disconnected graphs and graphs with unexpected atoms (some graphs have atoms represented as *) in the original graphs. Columns 2-3 show the number of positive and total number of graphs in each dataset, and Columns 4-5 indicate the average number of nodes and edges in each dataset, respectively.

Number of Datasets: 18 (9 imbalanced + 9 balanced data)

Full Dataset:

The full datasets of NCI graphs can be downloaded here (NCI_full.zip), which are naturally imbalanced and ideal benchmark for imbalanced or cost-sensitive graph classification. We have considered cost-sensitive graph classification in [2], and graph stream classification in [3][4][5].

Partial Dataset:

We randomly select #Pos number of negative graphs from each original graph set to create balanced graph datasets, which are available here (NCI_balanced.zip). This dataset was used in [7] for genral graph classification and [5] for multi-task graph classification

Citations:

If you used this dataset, please cite 2-3 of following papers:

  • Shirui Pan, Jia Wu, and Xingquan Zhu “CogBoost: Boosting for Fast Cost-sensitive Graph Classification", IEEE Transactions on Knowledge and Data Engineering (TKDE), 27(11): 2933-2946 (2015)
  • Shirui Pan, Jia Wu, Xingquan Zhu, Chengqi Zhang, Philip S. Yu. "Joint Structure Feature Exploration and Regularization for Multi-Task Graph Classification." IEEE Trans. Knowl. Data Eng. 28(3): 715-728 (2016)
  • Shirui Pan, Jia Wu, Xingquan Zhu, and Chengqi Zhang, “Graph Ensemble Boosting for Imbalanced Noisy Graph Stream Classification", IEEE Transactions on Cybernetics (TCYB), 45(5): 940-954 (2015).
  • Shirui Pan, Xingquan Zhu, Chengqi Zhang, and Philip S. Yu. "Graph Stream Classification using Labeled and Unlabeled Graphs", International Conference on Data Engineering (ICDE), pages 398-409, 2013
  • Shirui Pan, Jia Wu, Xingquan Zhu, Guodong Long, and Chengqi Zhang. " Task Sensitive Feature Exploration and Learning for Multi-Task Graph Classification." IEEE Trans. Cybernetics (TCYB) 47(3): 744-758 (2017).
  • Shirui Pan, Jia Wu, Xingquan Zhu, Guodong Long, Chengqi Zhang. "Finding the best not the most: regularized loss minimization subgraph selection for graph classification." Pattern Recognition (PR) 48(11): 3783-3796 (2015)

2. PTC Predictive Toxicology Challenge Data (PTC)

Description:

This PTC graph dataset include a number of carcinogenicity tasks for toxicology prediction of chemical compounds.

The dataset we selected contains 417 compounds from four types of test animals: MM (male mouse), FM (female mouse), MR (male rat), and FR (female rat). Each compound is with one label selected from {CE, SE, P, E, EE, IS, NE, N}, which stands for Clear Evidence of Carcinogenic Activity (CE), Some Evidence of Carcinogenic Activity (SE), Positive (P), Equivocal (E), Equivocal Evidence of Carcinogenic Activity (EE), Inadequate Study of Carcinogenic Activity (IS), No Evidence of Carcinogenic Activity (NE), and Negative (N).

Number of Datasets: 8 ( 4 Full + 4 Sub)

Full Dataset:

By setting {CE, SE, P} as positive label, {NE, N} as negative label, and remove the data with {E, EE, IS} we can obtain four graph datasets PTC_pn.zip.

Sub-dataset:

The data can be formulated as a multi-task problem. We can randomly split 417 compounds into four equal non-overlapping subsets. For each subset, we only consider one type of carcinogenicity test as its learning task. The multi-task graph dataset can be downloaded here (PTC_mtl.zip).

Citation:

If you used this dataset, please cite the following paper:

  • Shirui Pan, Jia Wu, Xingquan Zhu, Guodong Long, and Chengqi Zhang. " Task Sensitive Feature Exploration and Learning for Multi-Task Graph Classification." IEEE Trans. Cybernetics (TCYB) 47(3): 744-758 (2017).
  • Shirui Pan, Jia Wu, Xingquan Zhu, Chengqi Zhang, Philip S. Yu. "Joint Structure Feature Exploration and Regularization for Multi-Task Graph Classification." IEEE Trans. Knowl. Data Eng. 28(3): 715-728 (2016)

3. DBLP Graph Datasets (DBLP)

Description:

The DBLP dataset consists of bibliography data in computer science. Each record in DBLP is associated with a number of attributes such as abstract, authors, year, venue, title, and reference ID. To build a graph stream, we select a list of conferences (as shown in Table I) and use the papers published in these conferences (in chronological order) to form a binary-class graph stream. The classification task is to predict whether a paper belongs to DBDM (database and data mining) or CVPR (computer vision and pattern recognition) field, by using the references and the title of each paper.

Number of Datasets: 1

Version 1: Each paper in DBLP is represented as a graph, where each node denotes a Paper ID or a keyword and each edge denotes the citation relationship between papers or keyword relations in the title. More specifically, we denote that (1) each paper ID is a node; (2) if a paper P.A cites another paper P.B, there is an edge between P.A and P.B; (3) each keyword in the title is also a node; (4) each paper ID node is connected to the keyword nodes of the paper; and (5) for each paper, its keyword nodes are fully connected with each other. An example of DBLP graph data is shown in Fig. 4. The dataset can be downloaded here (DBLP_v1.zip).

Citation:

If you used this dataset, please cite the following paper:

  • Shirui Pan, Xingquan Zhu, Chengqi Zhang, and Philip S. Yu. "Graph Stream Classification using Labeled and Unlabeled Graphs", International Conference on Data Engineering (ICDE), pages 398-409, 2013

4. Twitter Sentiment Graph Data (Twitter)

Description:

This dataset is extracted from twitter sentiment classification. Because of the inherently short and sparse nature, twitter sentiment analysis (i.e., predicting whether a tweet reflects a positive or a negative feeling) is a difficult task. To build a graph dataset, we represent each tweet as a graph by using tweet content, with nodes in each graph denoting the terms and/or smiley symbols (e.g, :-D and :-P) and edges indicating the co-occurrence relationship between two words or symbols in each tweet. To ensure the quality of the graph, we only use tweets containing 20 or more words. We select the tweets from April 6 to June 16 to generate 140,949 graphs (in a chronological order). This dataset has been used for graph stream classification in [3] and cost-sensitive learning in [2].

Number of Datasets: 1

Dataset:

The data set is available here (Twitter-Graph.zip)

Citations:

If you used this dataset, please cite the following papers:

  • Shirui Pan, Jia Wu, and Xingquan Zhu “CogBoost: Boosting for Fast Cost-sensitive Graph Classification", IEEE Transactions on Knowledge and Data Engineering (TKDE), 27(11): 2933-2946 (2015)
  • Shirui Pan, Jia Wu, Xingquan Zhu, and Chengqi Zhang, “Graph Ensemble Boosting for Imbalanced Noisy Graph Stream Classification", IEEE Transactions on Cybernetics (TCYB), 45(5): 940-954 (2015).

5. Functional Brain Network Analysis Data (Brain)

Description:

BrainNet Functional Brain Network Analysis Data are constructed from the whole brain functional magnetic res- onance image (fMRI) atlas [6]. The purpose of the study is to map brain as a network (or a graph) where each node corresponds to a region of Interest (ROI) and the edge indicates correlations between two ROIs. In our experiments, we use functional parcellation results, CC200, from [6], which parcellate each brain into 200 regions of interest. In order to discover relationships between ROIs, the mean values of each ROI are recorded with respect to certain voxel time courses. By using Pearson correlations between two time courses, we can calculate correlation between two ROIs, and a graph is constructed by connecting ROIs whose correlations is higher than a threshold value. For ADHD and HI tasks, the functional response is real values, so we discretize the functional response to binary values by using a simple threshold.

Number of Datasets: 3

Dataset: The data set is available here (Brain.zip)

Citations: If you used this dataset, please cite the following papers:

  • Shirui Pan, Jia Wu, Xingquan Zhu, Guodong Long, and Chengqi Zhang. " Task Sensitive Feature Exploration and Learning for Multi-Task Graph Classification." IEEE Trans. Cybernetics (TCYB) 47(3): 744-758 (2017).

Reference:

  1. C. Borgelt and M. R. Berthold, “Mining molecular fragments: Finding relevant substructures of molecules,” 2002 IEEE International Conference on Data Mining. IEEE, 2002, pp. 51–58.
  2. S. Pan, J. Wu, and X. Zhu, “Cogboost: Boosting for fast cost-sensitive graph classification,” IEEE Transactions on Knowledge and Data Engineering, 2015.
  3. S. Pan, J. Wu, X. Zhu, and C. Zhang, “Graph ensemble boosting for imbalanced noisy graph stream classification,” IEEE Transactions on Cybernetic, 2015.
  4. S. Pan, X. Zhu, C. Zhang, and P. S. Yu, “Graph stream classification using labeled and unlabeled graphs,” in Proc. of ICDE. IEEE, 2013.
  5. S. Pan, J. Wu, X. Zhu, G. Long, and C. Zhang. "Task Sensitive Feature Exploration and Learning for Multi-Task Graph Classification." IEEE Trans. Cybernetics (TCYB) 47(3): 744-758 (2017).
  6. R. Craddock, C. James, P. Holtzheimer, X. Hu, and H. Mayberg, “A whole brain fmri atlas generated via spatially constrained spectral clustering,” Human Brain Mapping, vol. 33, 2012.
  7. S. Pan, J. Wu, X. Zhu, G. Long, C. Zhang. "Finding the best not the most: regularized loss minimization subgraph selection for graph classification." Pattern Recognition (PR) 48(11): 3783-3796 (2015)

Appendix:

About the File Format:

1. Molecular Graphs:

SDF file:

SDF is one of a family of chemical-data file formats developed by MDL; it is intended especially for structural information. "SDF" stands for structure-data file, and SDF files actually wrap the molfile (MDL Molfile) format. Multiple compounds are delimited by lines consisting of four dollar signs ($$$$). A feature of the SDF format is its ability to include associated data. An example of SDF file is available here (example.sdf):

Note that the associated data “> ” in the file indicates the class label of a chemical compound, -1.0 means it is a negative example while 1.0 means it is a positive example.

SMI file:

The Simplified Molecular Input Line Entry Specification (SMILES) is a line notation for molecules. SMILES strings include connectivity but do not include 2D or 3D coordinates. Example of our smi format is:

TR155,-1,c1c(Cl)cc(Cl)c(O)c1Cl

TR174,-1,c1cc(N)ccc1N

TR366,1,c1cc(O)ccc1O

Where each line indicates a chemical compounds in the format as follows: ID, Class Label, Smiles String

Depict a chemical compound: The structure of chemical compounds can be depicted in a number of online toolboxes: Here is a link (http://cdb.ics.uci.edu/cgibin/Smi2DepictWeb.py) you can have a try. Some pictures are obtained as follows:

Chemical Compound Visualization

2. General Graphs:

NEL file:

The NEL file is a general representation of graph objects, which explicitly shows the node edges information. An example of NEL file is as follows:

n 1 a

n 2 b

n 3 c

e 1 2 A

e 1 3 B

g graph_1

x 1.0

In this example, the first 3 lines define 3 nodes with node label ‘a’, ‘b’, and ‘c’.

‘e 1 2 A’ means there is an edge with label A between the first and second nodes.

‘g graph_1’ defines the name of this graph.

‘x 1.0’ indicates the class label of this graph. For binary classification, 1.0 means positive, -1.0 means negative.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].