-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b383f50
commit 1797e3f
Showing
7 changed files
with
57 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
module Graph | ||
|
||
using JSMDInterfaces.Interface: @interface | ||
|
||
using Graphs | ||
|
||
import Graphs: has_vertex, has_edge, edges, edgetype, inneighbors, ne, nv, outneighbors, vertices, is_directed | ||
|
||
abstract type AbstractJSMDGraph{T} <: AbstractGraph{T} end | ||
|
||
abstract type AbstractJSMDGraphNode end | ||
|
||
# Graphs interface | ||
|
||
@interface function Graphs.has_vertex(::AbstractJSMDGraph, ::Int) end | ||
|
||
@interface function Graphs.has_edge(::AbstractJSMDGraph, ::Int, ::Int) end | ||
|
||
@interface function Graphs.edges(::AbstractJSMDGraph) end | ||
|
||
@interface function Graphs.edgetype(::AbstractJSMDGraph) end | ||
|
||
@interface function Graphs.inneighbors(::AbstractJSMDGraph, ::Int) end | ||
|
||
@interface function Graphs.ne(::AbstractJSMDGraph) end | ||
|
||
@interface function Graphs.nv(::AbstractJSMDGraph) end | ||
|
||
@interface function Graphs.outneighbors(::AbstractJSMDGraph, ::Int) end | ||
|
||
@interface function Graphs.vertices(::AbstractJSMDGraph) end | ||
|
||
@interface function Graphs.is_directed(::AbstractJSMDGraph) end | ||
|
||
# JSMD interface | ||
|
||
@interface function add_vertex!(::AbstractJSMDGraph, ::N) where {N<:AbstractJSMDGraph} end | ||
|
||
@interface function add_edge!(::AbstractJSMDGraph, ::Int, ::Int, ::Int) end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
module Models | ||
|
||
using JSMDInterfaces.Errors | ||
using SMDGraphs: AbstractGraphNode | ||
using JSMDInterfaces.Interface: @interface | ||
using JSMDInterfaces.FilesIO: AbstractArchiveNode | ||
|
||
include("abstract.jl") | ||
include("acceleration.jl") | ||
include("frame.jl") | ||
|
||
end |