Skip to content

Commit

Permalink
3.0.6 version
Browse files Browse the repository at this point in the history
Adapted production project to NetworkX 2.0 eliminating the
normalized=False specification in closeness_centrality in
graphicDisplayGlobalVarAndFunctions.py file
  • Loading branch information
terna committed Nov 13, 2017
1 parent 22b6a4c commit e2902b6
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 5 deletions.
36 changes: 36 additions & 0 deletions .ipynb_checkpoints/iRunShell-checkpoint.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"outputs": [],
"source": [
"%run runShell.py"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def drawGraph():
# networkx.algorithms.centrality.closeness_centrality.html
print()
print("closeness_centrality")
common.clsn = nx.closeness_centrality(common.g, normalized=False)
common.clsn = nx.closeness_centrality(common.g)
# print clsn
for i in range(len(common.orderedListOfNodes)):
print(common.orderedListOfNodes[i].number,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

def runSLAPP():
global start_pyDir
print("\nSLAPP v3.0.5 build 20170906\n")
print("\nSLAPP v3.0.6 build 20171113\n")
import os

confirm = "n"
Expand Down
8 changes: 7 additions & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,4 +327,10 @@ under execution (if debug==False)
fixed duplicating the *except* condition, with *except SystemExit* in first
position to repeat the *os.sys.exit(1)* action

the same in ModelSwarm.py when applying methods via the functions of Tools.py
the same in ModelSwarm.py when applying methods via the functions of Tools.py

(2017 11 13)

3.0.6

adapted *production* project to the version 2.0 of NetworkX
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SLAPP <img src="./-pictures/slapp-logo.png" height="90" />

Swarm-Like Agent Protocol in Python (3)

Here you have SLAPP **3.0.5 build 20170905**, running in Python 3 (in the [SLAPP repository](http://terna.to.it/slapp_dep/) you have related material and very old versions; the 2.0.x versions are still related to Python 2).
Here you have SLAPP **3.0.6 build 20171113**, running in Python 3 (in the [SLAPP repository](http://terna.to.it/slapp_dep/) you have related material and very old versions; the 2.0.x versions are still related to Python 2).

We have here also a [**Reference Handbook**](SLAPP_Reference_Handbook.pdf) (it is still a draft and has to be improved).

Expand Down
2 changes: 1 addition & 1 deletion iRunShell.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.1"
"version": "3.6.3"
}
},
"nbformat": 4,
Expand Down

0 comments on commit e2902b6

Please sign in to comment.