EdgeGnW / RustPraxisProjekt2024

A rust graph library utilizing wavelettrees/matrices
0 stars 0 forks source link

Implement new structure WaveModel as a wrapper structure for the QWT matrix #13

Closed DerFred3 closed 2 weeks ago

DerFred3 commented 1 month ago

Rename existing WaveGraph structure to GraphModel.

The data tables holding the labels and weights of nodes and edges will be moved between both models. Therefore WaveModel consists of: both data tables, bitmap, flag if edges are directed and the wavelet matrix.

WaveModel should allow reading a serialized Wavelet matrix and imports it as a WaveModel with which the user can interact. GraphModel should allow reading a petgraph (either by providing a petgraph or some serialized adjacency list) and imports it as a GraphModel with which the user can interact.

The switching between WaveModel and GraphModel is mandatory.

For future references: Some wrapping struct (namely WaveGraph?) should be created to ease the use of importing the different strucutes. This struct shall only be intermediate and cannot be returned to, i.e. it is only supposed to be some helper wrapper for importing data.