Skip to content

Commit

Permalink
rename to DirectedAcyclicGraphs.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
khosravipasha committed Nov 16, 2021
1 parent 74c7460 commit c216530
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "DAGs"
name = "DirectedAcyclicGraphs"
uuid = "1e6dae5e-d6e2-422d-9af3-452e7a3785ee"
authors = ["Guy Van den Broeck <[email protected]>"]
version = "0.1.0"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# DAGs.jl
# DirectedAcyclicGraphs.jl

[![Unit Tests](https://github.com/Juice-jl/DAGs.jl/workflows/Unit%20Tests/badge.svg)](https://github.com/Juice-jl/DAGs.jl/actions?query=workflow%3A%22Unit+Tests%22+branch%3Amain) [![codecov](https://codecov.io/gh/Juice-jl/DAGs.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/Juice-jl/DAGs.jl) [![](https://img.shields.io/badge/docs-dev-blue.svg)](https://juice-jl.github.io/DAGs.jl/dev/)
[![Unit Tests](https://github.com/Juice-jl/DirectedAcyclicGraphs.jl/workflows/Unit%20Tests/badge.svg)](https://github.com/Juice-jl/DirectedAcyclicGraphs.jl/actions?query=workflow%3A%22Unit+Tests%22+branch%3Amain) [![codecov](https://codecov.io/gh/Juice-jl/DirectedAcyclicGraphs.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/Juice-jl/DirectedAcyclicGraphs.jl) [![](https://img.shields.io/badge/docs-dev-blue.svg)](https://juice-jl.github.io/DirectedAcyclicGraphs.jl/dev/)

Infrastructure to work with Directed Acyclic Graphs in Julia
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[deps]
DAGs = "1e6dae5e-d6e2-422d-9af3-452e7a3785ee"
DirectedAcyclicGraphs = "1e6dae5e-d6e2-422d-9af3-452e7a3785ee"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
DocumenterLaTeX = "cd674d7a-5f81-5cf3-af33-235ef1834b99"
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
Expand Down
10 changes: 5 additions & 5 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Documenter
using DocumenterLaTeX
using DAGs
using DirectedAcyclicGraphs
using Literate


Expand All @@ -14,19 +14,19 @@ pages = [

format = Documenter.HTML(
prettyurls = !("local" in ARGS),
canonical = "https://juice-jl.github.io/DAGs.jl/stable/",
canonical = "https://juice-jl.github.io/DirectedAcyclicGraphs.jl/stable/",
assets = ["assets/favicon.ico"],
analytics = "UA-136089579-2",
highlights = ["yaml"],
collapselevel = 1,
)

makedocs(
sitename = "DAGs.jl",
sitename = "DirectedAcyclicGraphs.jl",
pages = pages,
format = format,
doctest = true,
modules = [DAGs],
modules = [DirectedAcyclicGraphs],
linkcheck_ignore = [
# We'll ignore links that point to GitHub's edit pages, as they redirect to the
# login screen and cause a warning:
Expand All @@ -39,7 +39,7 @@ makedocs(
# for more information.
deploydocs(
target = "build",
repo = "github.com/Juice-jl/DAGs.jl.git",
repo = "github.com/Juice-jl/DirectedAcyclicGraphs.jl.git",
branch = "gh-pages",
devbranch = "main",
devurl = "dev",
Expand Down
4 changes: 2 additions & 2 deletions docs/src/api.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

# [DAGs](@id api-internal-dags)
# [DirectedAcyclicGraphs](@id api-internal-dags)

```@autodocs
Modules = [DAGs]
Modules = [DirectedAcyclicGraphs]
```
4 changes: 2 additions & 2 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# DAGs.jl
# DirectedAcyclicGraphs.jl

This package provides tools to represent Directed Acyclic Graphs (DAGs), additionaly
it includes common tasks that are relevant to DAGs, see the API section for me details.
it includes common tasks that are relevant to DirectedAcyclicGraphs, see the API section for me details.
12 changes: 6 additions & 6 deletions docs/src/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@

Julia 1.6 or greater. For installation, please refer to [the official Julia Website](https://julialang.org/downloads/).

### Installing DAGs
### Installing DirectedAcyclicGraphs

#### From Command Line

To install the latest stable release, run:

```bash
julia -e 'using Pkg; Pkg.add("DAGs")'
julia -e 'using Pkg; Pkg.add("DirectedAcyclicGraphs")'
```

To install the package with the latest commits on master branch, run:

```bash
julia -e 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/Juice-jl/DAGs.jl.git"))'
julia -e 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/Juice-jl/DirectedAcyclicGraphs.jl.git"))'
```

#### From Julia Pkg REPL
Expand All @@ -28,19 +28,19 @@ julia -e 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/Juice-jl/DAGs.j
While in Pkg mode, run the following to install the latest release:

```julia
] add DAGs
] add DirectedAcyclicGraphs
```

Similarly, to install from the latest commits on master branch, run:

```julia
] add DAGs#master
] add DirectedAcyclicGraphs#master
```

### Testing

If you are installing the latest commit, we recommend running the test suite to make sure everything is in order, to do that run:

```bash
julia --color=yes -e 'using Pkg; Pkg.test("DAGs")'
julia --color=yes -e 'using Pkg; Pkg.test("DirectedAcyclicGraphs")'
```
2 changes: 1 addition & 1 deletion src/DAGs.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module DAGs
module DirectedAcyclicGraphs

include("graphs.jl")
include("trees.jl")
Expand Down
2 changes: 1 addition & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[deps]
DAGs = "1e6dae5e-d6e2-422d-9af3-452e7a3785ee"
DirectedAcyclicGraphs = "1e6dae5e-d6e2-422d-9af3-452e7a3785ee"
Jive = "ba5e3d4b-8524-549f-bc71-e76ad9e9deed"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
10 changes: 5 additions & 5 deletions test/graphs_test.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Test
using DAGs
using DirectedAcyclicGraphs

module TestNodes

using Test
using ..DAGs
using ..DirectedAcyclicGraphs

mutable struct TestINode <: DAG
id::Int
Expand All @@ -17,9 +17,9 @@ module TestNodes
TestLNode(i) = new(i)
end

DAGs.NodeType(::Type{<:TestINode}) = Inner()
DAGs.NodeType(::Type{<:TestLNode}) = Leaf()
DAGs.children(n::TestINode) = n.children
DirectedAcyclicGraphs.NodeType(::Type{<:TestINode}) = Inner()
DirectedAcyclicGraphs.NodeType(::Type{<:TestLNode}) = Leaf()
DirectedAcyclicGraphs.children(n::TestINode) = n.children

@testset "Graphs utils for TestNodes" begin

Expand Down
2 changes: 1 addition & 1 deletion test/trees_test.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Test
using DAGs
using DirectedAcyclicGraphs

# TODO add similar tests for `Tree`s as `DAG`s

Expand Down

0 comments on commit c216530

Please sign in to comment.