petgraph VS autograph

Compare petgraph vs autograph and see what are their differences.

petgraph

Graph data structure library for Rust. (by petgraph)

autograph

Machine Learning Library for Rust (by charles-r-earp)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
petgraph autograph
6 5
2,632 298
4.2% -
6.2 9.2
6 days ago 19 days ago
Rust Rust
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

petgraph

Posts with mentions or reviews of petgraph. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-04.
  • The Hunt for the Missing Data Type
    10 projects | news.ycombinator.com | 4 Mar 2024
    I used to think that since graphs are such a broad datastructure that can be represented in different ways depending on requirements that it just made more sense to implement them at a domain-ish level.

    Then I saw Petgraph [0] which is the first time I had really looked at a generic graph library. It's very interesting, but I still have implemented graphs at a domain level.

    [0] https://github.com/petgraph/petgraph

  • Many of the typical "Algorithms" as plain Rust implementation
    4 projects | /r/rust | 22 Aug 2022
    For graph algorithms specifically, also consider looking at the implementations in petgraph.
  • autograph v0.1.0
    3 projects | /r/rust | 30 Oct 2021
    Render the backward "graph" using petgraph for visualization and debugging purposes.
  • Another graph library :)
    3 projects | /r/rust | 26 Apr 2021
    I second the need for quickcheck-style tests. I implemented a matching algorithm in petgraph, and quickcheck discovered so many bugs on non-trivial graphs. Thanks to it, I am now much more confident that it is indeed correct.
  • Why Rust for Robots?
    7 projects | dev.to | 9 Apr 2021
    petgraph: Graph data structure library, compatible with Rust

autograph

Posts with mentions or reviews of autograph. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-01-04.
  • Where to Learn Vulkan for parallel computation (with references to porting from CUDA)
    5 projects | /r/vulkan | 4 Jan 2022
    I'm working on a machine learning library https://github.com/charles-r-earp/autograph implemented in Rust that uses rust-gpu to compile Rust compute shaders to spirv, and then gfx_hal to target metal and dx12. Training performance is currently about 2x slower than pytorch (cuda) on my laptop but I've made significant progress recently and I am targeting 1.5x. While rust-gpu itself has it's own restrictions, it does support inline spirv assembly, which provides direct access to operations not provided in its std lib, thus it's lower level than GLSL. For example, it should be possible to target cuda tensor cores via cooperative matrix operations (I believe Metal supports these as well but this may not be implemented in spirv-cross and certainly isn't in naga). Once I have things a bit more stabilized I'd like to provide more examples, like porting from cuda / opencl, but I'm still figuring out patterns like how to work with 16 and 8 bit types in a nice and portable way.
  • autograph v0.1.0
    3 projects | /r/rust | 30 Oct 2021
    autograph v0.1.0
  • What's the current state of GPU compute in rust?
    6 projects | /r/rust | 20 Sep 2021
    Working on autograph, for machine learning and neural networks. Unlike CUDA / HIP it's threadsafe, but doesn't expose low level things like multiple streams. Most of the shaders are glsl but I'm now using rust_gpu for pure rust gpu code.
  • Announcing neuronika 0.1.0, a deep learning framework in Rust
    7 projects | /r/rust | 15 Jun 2021
    Maybe not for learning but as inspiration I have to plug this amazing effort for ML with (vulkan) shaders: https://github.com/charles-r-earp/autograph
  • What do you think about a library that helps reducing the overhead of GPU programming, regarding ndimensional Arrays?
    5 projects | /r/rust | 13 Feb 2021
    Maybe you'd be interested in checking out my library, https://github.com/charles-r-earp/autograph?

What are some alternatives?

When comparing petgraph and autograph you can also consider the following projects:

neuronika - Tensors and dynamic neural networks in pure Rust.

RustaCUDA - Rusty wrapper for the CUDA Driver API

rosrust - Pure Rust implementation of a ROS client library

rust-gpu - 🐉 Making Rust a first-class language and ecosystem for GPU shaders 🚧

optimization-engine - Nonconvex embedded optimization: code generation for fast real-time optimization

VkFFT - Vulkan/CUDA/HIP/OpenCL/Level Zero/Metal Fast Fourier Transform library

ocl - OpenCL for Rust

juice - The Hacker's Machine Learning Engine

prepona - A graph crate with simplicity in mind

tractjs - Run ONNX and TensorFlow inference in the browser.

are-we-learning-yet - How ready is Rust for Machine Learning?

nphysics - 2 and 3-dimensional rigid body physics engine for Rust.