Cargo Features

[dependencies]
xgraph = { version = "2.0.0", default-features = false, features = ["graph", "hgraph", "rayon"] }
default = graph, hgraph

Включаем обе фичи по умолчанию

graph default

Фича для работы с обычным графом

Affects xgraph::graph

hgraph default

Фича для работы с гетерогенным мультиграфом

Affects h_bridges::BridgeContext, h_bridges::HeteroBridges, h_centrality::HeteroCentrality, h_connectivity::HeteroConnectivity, h_leiden_clustering::HeteroCommunityDetection, h_leiden_clustering::CommunityConfig, h_search::SearchError, h_search::Result, h_search::HeteroSearch, h_shortest_path::ShortestPathError, h_shortest_path::Result, h_shortest_path::HeteroShortestPath, h_wiedemann_ford::DominatingSetError, h_wiedemann_ford::Result, h_wiedemann_ford::HeteroDominatingSetFinder, h_graph_conversion::GraphConversionError, h_graph_conversion::Result, h_graph_conversion::GraphConversion, hcsv_io::CsvIoError, hcsv_io::Result

Features from optional dependencies

rayon implicit feature

Enables rayon

rayon:

Simple work-stealing parallelism for Rust