Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add interface for retrieving partition information #3552

Closed
TheMarex opened this issue Jan 11, 2017 · 1 comment
Closed

Add interface for retrieving partition information #3552

TheMarex opened this issue Jan 11, 2017 · 1 comment
Assignees
Labels

Comments

@TheMarex
Copy link
Member

TheMarex commented Jan 11, 2017

We need a class for #3350 that will be the interface to the query algorithm and the customize algorithm:

When talking about node and edge ID this will refer to the IDs of the Edge-Based-Graph stored in the .ebg file.

Some pseudo code of a possible interface:

class MultiLevelPartition
{
// Returns the ID of the cell of `node` at `level`
CellID GetCellID(NodeID node, LevelID level);

// Returns the ID of the level in which `node` is relevant for our query
// That is the lowest level in which node is not in the same cell as start or target
LevelID GetQuerryLevelID(NodeID start, NodeID target, NodeID node);

std::size_t GetNumberOfLevels() const = 0;

std::size_t GetNumberOfCells(LevelID level) const = 0;
};

The data for this class will be provided by the partitioner outlined in #3204.

CellID can be either continuous or not. The latter enables compact packing into a 32bit integer, the former makes the data structure to look up the actual cells more memory efficient.

@TheMarex
Copy link
Member Author

Going to use a previous implementation for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants