-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2433 from DanGrayson/core-documentation
Core documentation
- Loading branch information
Showing
21 changed files
with
360 additions
and
35 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
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 |
---|---|---|
|
@@ -24,15 +24,15 @@ of the License, or any later version. | |
------------------------------------------ | ||
------------------------------------------ | ||
|
||
newPackage select(( | ||
newPackage ( | ||
"Graphs", | ||
Version => "0.3.4", | ||
Date => "May 15, 2021", | ||
Authors => { | ||
{Name => "Jack Burkart", Email => "[email protected]"}, | ||
{Name => "David Cook II", Email => "[email protected]", HomePage => "http://ux1.eiu.edu/~dwcook/"}, | ||
{Name => "Caroline Jansen", Email => "[email protected]"}, | ||
{Name => "Amelia Taylor", Email => "[email protected]"}, | ||
{Name => "David Cook II", Email => "[email protected]", HomePage => "http://ux1.eiu.edu/~dwcook/"}, | ||
{Name => "Caroline Jansen", Email => "cjansen@alumni.nd.edu"}, | ||
{Name => "Amelia Taylor", Email => "[email protected]"}, | ||
{Name => "Augustine O'Keefe", Email => "[email protected]"}, | ||
{Name => "Contributors of note: Carlos Amendola, Alex Diaz, Luis David Garcia Puente, Roser Homs Pons, Olga Kuznetsova, Shaowei Lin, Sonja Mapes, Harshit J Motwani, Mike Stillman, Doug Torrance"} | ||
}, | ||
|
@@ -45,8 +45,8 @@ newPackage select(( | |
PackageExports => { | ||
"SimplicialComplexes" | ||
}, | ||
DebuggingMode => false, | ||
), x -> x =!= null) | ||
DebuggingMode => false | ||
) | ||
|
||
-- Load configurations | ||
graphs'DotBinary = if instance((options Graphs).Configuration#"DotBinary", String) then (options Graphs).Configuration#"DotBinary" else "dot"; | ||
|
@@ -1826,6 +1826,7 @@ doc /// | |
(graph, Matrix) | ||
[graph, Singletons] | ||
[graph, EntryMode] | ||
EntryMode | ||
Headline | ||
Constructs a simple graph | ||
Usage | ||
|
@@ -1874,7 +1875,7 @@ doc /// | |
The hash table with a graph's vertices as keys and list of neighbors as values. | ||
Description | ||
Text | ||
A graph consists of two sets, a vertex set and an edge set which is a subset of the collection of subsets of the vertex set. Edges in graphs are symmetric or two-way; if u and v are vertices then if {u,v} is an edge connecting them, {v,u} is also an edge (which is implicit in the definition, we will almost always just use one of the pairs). The options for EntryMode are "neighbors" (the default) and "edges." This method returns a hash table where the keys are vertices of a given graph or digraph and the values are their children (or neighbors, in the case of undirected graphs). | ||
A graph consists of two sets, a vertex set and an edge set which is a subset of the collection of subsets of the vertex set. Edges in graphs are symmetric or two-way; if u and v are vertices then if {u,v} is an edge connecting them, {v,u} is also an edge (which is implicit in the definition, we will almost always just use one of the pairs). The options for EntryMode are "neighbors" (the default) and "edges". This method returns a hash table where the keys are vertices of a given graph or digraph and the values are their children (or neighbors, in the case of undirected graphs). | ||
Example | ||
G = graph digraph({{1,2},{2,1},{3,1}}, EntryMode => "edges") | ||
G = graph digraph(matrix {{0,1,1},{1,0,0},{1,0,0}}) | ||
|
@@ -3677,8 +3678,9 @@ doc /// | |
Key | ||
forefathers | ||
(forefathers,Digraph,Thing) | ||
symbol foreFathers | ||
Headline | ||
returns the forefathers of a digrah | ||
returns the forefathers of a digraph | ||
Usage | ||
L = forefathers (D, v) | ||
Inputs | ||
|
@@ -4780,6 +4782,7 @@ doc /// | |
Key | ||
directProduct | ||
(directProduct, Graph, Graph) | ||
symbol tensorProduct | ||
Headline | ||
Computes the direct product of two graphs | ||
Usage | ||
|
@@ -5366,9 +5369,33 @@ doc /// | |
/// | ||
|
||
|
||
|
||
|
||
|
||
doc /// | ||
Key | ||
clusteringCoefficient | ||
(clusteringCoefficient, Graph) | ||
(clusteringCoefficient, Graph, Thing) | ||
Headline | ||
a method for computing the clustering coefficient of a Graph | ||
Usage | ||
c = clusteringCoefficient(G, v) | ||
g = clusteringCoefficient(G) | ||
Inputs | ||
G:Graph | ||
v:Thing | ||
v should be a member of the vertex set of G | ||
Outputs | ||
c:ZZ | ||
The local clustering coefficient for G relative to v. | ||
g:ZZ | ||
The global clustering coefficient for G. | ||
Description | ||
Text | ||
The clustering coefficient is a measure of the degree to which nodes in a graph tend to cluster together. The global clustering coefficient gives an overall | ||
indication of the interconnectedness of the graph. The local clustering coefficient gives an indication of how embedded a single vertex is in the graph. | ||
Example | ||
clusteringCoefficient cycleGraph 4 | ||
clusteringCoefficient completeGraph 4 | ||
/// | ||
|
||
|
||
TEST /// | ||
|
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
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
Oops, something went wrong.