Skip to content

Fast Estimation of Reachability with Label Constraint

Notifications You must be signed in to change notification settings

bing0n3/Network-Reachability

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fast Estimation of Reachability with Label Constraint

Fast Estimation of Reachability with Label Constraints

Input: A node-labeled directed graph G, a pair of nodes s and t in G, and a set of node labels L, Q(s, t, G, L).

Output “yes” if there exists a path from s to t, and all the nodes it passes has a label from the set L.

The most of Label Constrainted Reachbility Query Algotihms are designed to solve edge-labeled problem. In this project, we focus on solve node-labled problem. We proposed two soultion based on 2-hop cover and landmark index:

2-hop: a eact exact algorithm and make use of 2-hop cover/index to optimize the query.

landmark index: an approximate query processing strategy use landmark index to opoptimize

How to Run

You can go into the dir of algorithms, and use camke to build a Makefile, then use make to generate a exectuable file, for example:

$ cd landmark
$ cmake .
$ make 

After you generate a exectuable file, like landmark, you can run it like:

$ ./landmark ../dataset/soc-advogato.edges

The input file must have suffix .edges, and generated corresponding .data files in the same dir, and .data file is generated by genData.py.

References

  • Valstar, Lucien DJ, George HL Fletcher, and Yuichi Yoshida. "Landmark indexing for evaluation of label-constrained reachability queries." In Proceedings of the 2017 ACM International Conference on Management of Data, pp. 345-358. 2017. Harvard
  • Reachability and Distance Queries via 2-Hop Labels
  • 5kbpers/2-hop-labels

About

Fast Estimation of Reachability with Label Constraint

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published