1 Commits

Author SHA1 Message Date
warrence 8f9f0bf4c8 Add language tag to readme example code for syntax highlighting 2026-07-17 11:21:31 +02:00
4 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "grapherity" name = "grapherity"
version = "0.2.3" version = "0.2.2"
authors = ["Stefan Müller"] authors = ["Stefan Müller"]
edition = "2024" edition = "2024"
rust-version = "1.85.0" rust-version = "1.85.0"
+1 -1
View File
@@ -15,7 +15,7 @@ For more information, see the [documentation](https://docs.rs/grapherity/latest/
## Example ## Example
``` ```rust
// Brings commonly used traits into scope. // Brings commonly used traits into scope.
use grapherity::prelude::*; use grapherity::prelude::*;
use grapherity::models::Graph; use grapherity::models::Graph;
+2
View File
@@ -127,6 +127,8 @@
//! [`GraphTopology::Vertex`]: crate::traits::GraphTopology::Vertex //! [`GraphTopology::Vertex`]: crate::traits::GraphTopology::Vertex
//! [`GraphTopologyDeletion`]: crate::traits::GraphTopologyDeletion //! [`GraphTopologyDeletion`]: crate::traits::GraphTopologyDeletion
#![warn(missing_docs)]
pub mod algorithms; pub mod algorithms;
pub mod maps; pub mod maps;
pub mod models; pub mod models;
-1
View File
@@ -222,7 +222,6 @@ pub trait IncidenceCursor<G: GraphTopology + ?Sized> {
/// ``` /// ```
/// # use grapherity::prelude::*; /// # use grapherity::prelude::*;
/// # use grapherity::models::Graph; /// # use grapherity::models::Graph;
/// # use grapherity::traits::IncidenceCursor;
/// // Constructs a graph with two vertices connected to `v`. /// // Constructs a graph with two vertices connected to `v`.
/// let mut graph = Graph::new(); /// let mut graph = Graph::new();
/// let v = graph.add_vertex(); /// let v = graph.add_vertex();