• This repository has been archived on 22/Oct/2021
  • Stars
    star
    205
  • Rank 191,264 (Top 4 %)
  • Language
    Julia
  • License
    Other
  • Created almost 12 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Working with graphs in Julia

Graphs.jl

Build Status Coverage Status

Graphs Graphs Graphs

This is an archived copy of the old Graphs.jl package, which is retained solely for the issues and pull-requests. The new repository for Graphs.jl is https://github.com/JuliaGraphs/Graphs.jl, which includes all the code from this repo along with the development history of LightGraphs, which was later renamed to Graphs and merged into that combined repository. As the name "Graphs" suggests, this was the original graph package in Julia. By 2016, however, it had become largely unmaintained. Another graphs package named LightGraphs, focused on a slightly different set of use cases, eventually became the de facto standard graphs package in the Julia ecosystem. In 2021, the primary author of LightGraphs departed and the name was retired at their request. At that point, the code base of LightGraphs was grafted back into a forked copy of the Graphs repository, which now lives in the JuliaGraphs organization, wholesale replacing the content of this archived repository. So Graphs was the original graph library; then LightGraphs became the standard; then LightGraphs was renamed to Graphs and replaced the code of the old Graphs, which is what you're looking at here. Yes, it's all a bit confusing—sorry about that. What follows is the README of the original Graphs package.


Graphs.jl is a Julia package that provides graph types and algorithms. The design of this package is inspired by the Boost Graph Library (e.g. using standardized generic interfaces), while taking advantage of Julia's language features (e.g. multiple dispatch). This library allows storing of own information in the graph structure -- useful in many cases.

Main Features

An important aspect of Graphs.jl is the generic abstraction of graph concepts expressed via standardized interfaces, which allows access to a graph's structure while hiding the implementation details. This encourages reuse of data structures and algorithms. In particular, one can write generic graph algorithms that can be applied to different graph types as long as they implement the required interface.

In addition to the generic abstraction, there are other important features:

  • A variety of graph types tailored to different purposes

    • generic adjacency list
    • generic incidence list
    • a simple graph type with compact and efficient representation
    • an extended graph type that supports labels and attributes
  • A collection of graph algorithms:

    • graph traversal with visitor support: BFS, DFS
    • cycle detection
    • connected components
    • topological sorting
    • shortest paths: Dijkstra, Floyd-Warshall, A*
    • minimum spanning trees: Prim, Kruskal
    • maximal cliques
    • random graph generation: ErdÅ‘s–Rényi, Watts-Strogatz (see the RandomGraphs.jl package for more random graph models)
    • more algorithms are being implemented
  • Matrix-based characterization: adjacency matrix, weight matrix, Laplacian matrix

  • All data structures and algorithms are implemented in pure Julia, and thus they are portable.

  • We paid special attention to the runtime performance. Many of the algorithms are very efficient. For example, a benchmark shows that it takes about 15 milliseconds to run the Dijkstra's algorithm over a graph with 10 thousand vertices and 1 million edges on a macbook pro.

Documentation

Please refer to Graphs.jl Documentation for latest documentation.

More Repositories

1

julia-tutorial

A Julia tutorial
TeX
162
star
2

Morsel.jl

[deprecated] Sinatra-like micro framework for web programming in Julia
Julia
131
star
3

FactCheck.jl

Midje-like testing for Julia
Julia
81
star
4

CUDArt.jl

Julia wrapper for CUDA runtime API
Julia
78
star
5

CUDA.jl

DEPRECATED: old Julia programming interface for CUDA
Julia
64
star
6

ReverseDiffSource.jl

Reverse automated differentiation from source
Julia
48
star
7

Color.jl

Basic color manipulation utilities.
Julia
47
star
8

QuDirac.jl

A library for performing quantum mechanics using Dirac notation in Julia
Julia
47
star
9

QuBase.jl

A foundational library for quantum mechanics in Julia
Julia
43
star
10

CUDNN.jl

Julia wrapper for the NVIDIA cuDNN GPU deep learning library
Julia
40
star
11

Markdown.jl

Markdown parsing for Julia
Julia
39
star
12

readline

Fork of GNU libreadline, patched to work on Windows.
C
34
star
13

CUBLAS.jl

Julia interface to CUBLAS
Julia
25
star
14

CUSPARSE.jl

Julia interface to NVIDIA's CUSPARSE library
Julia
23
star
15

TOML_old.jl

TOML v0.4.0 parser for Julia
Julia
22
star
16

CUSOLVER.jl

Julia
15
star
17

UUID.jl

Uuid library for Julia
Julia
11
star
18

SparseVectorsOLD.jl

A Julia package for sparse vectors.
Julia
10
star
19

Meddle.jl

[deprecated] Meddle is a middleware stack for use with HttpServer.jl
Julia
9
star
20

Options.jl

A framework for providing optional arguments to functions.
Julia
8
star
21

CUFFT.jl

Wrapper for the CUDA FFT library
Julia
8
star
22

TakingBroadcastSeriously.jl

Julia
7
star
23

libuv-archive

Platform-independent event layer for Node.js.
C
7
star
24

Nullables.jl

Nullable type for Julia > 0.6
Julia
7
star
25

Sound.jl

Reading and writing from WAV files
Julia
6
star
26

Examples

Julia code examples that used to be part of the Julia repo
Julia
6
star
27

Grisu.jl

The old Base.Grisu module made into a package
Julia
4
star
28

DiffBase.jl

This package has been replaced by DiffRules.jl, DiffResults.jl, and DiffTests.jl.
Julia
4
star
29

Benchmarks

Benchmarks that used to be included in the Julia source
Julia
3
star
30

CSparse.jl

CSparse functions that were formerly part of base Julia
Julia
3
star
31

ODE.jl

Assorted basic Ordinary Differential Equation solvers
Julia
2
star
32

XORShiftRNG.jl

XORShift RNGs
Julia
2
star
33

OldPkg.jl

Julia's old package manager
Julia
1
star
34

IndexingBenchmarks.jl

Julia
1
star