ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 21 Jan 2021 16:26:34 +0100Cluster transitivityhttps://ask.sagemath.org/question/55411/cluster-transitivity/The *cluster transitivity* (the fraction of closed triangles ) of g is equal to:
C =(number of triangles) × 3/(number of connected triples)
Formula (7.28) Networks Mark Newman (2018)
I would like to ask you about the method cluster_transitivity() It gives 0.0853107962707866 for this network:
http://snap.stanford.edu/data/email-Enron.html , but a table from this page shows that Fraction of closed triangles is 0.03015. **So, these two number are not equal.**
If I omit 3 in the formula (7.28) and I get 0.0284369320902622.
**Why?**
On this page: http://snap.stanford.edu/data/index.html (at the end),
we have a definition of the fraction of closed triangles: Number of connected triples of nodes / number of (undirected) length 2 pathsSYLAThu, 21 Jan 2021 16:26:34 +0100https://ask.sagemath.org/question/55411/Can't find packages combinat and clusterhttps://ask.sagemath.org/question/43777/cant-find-packages-combinat-and-cluster/ I just installed SageMath-8.1.app on MacBook Touchbar OSX 10.12.6. I wanted the ClusterAlgebra/Quiver package. The 2011 manual ("Compendium") says to first install the combinatorics package "combinat " by entering "./sage -combinat install". I did that on the terminal command line in various subdirectories of SageMath-8.1.app but got only error messages. I then tried "./sage -i combinat" which produced much output with the upshot that it couldn't find combinat. "./sage package list" showed neither combinat nor anything sounding like "cluster". I will appreciate suggestions.
---If this is not the right forum for this question, please advise where to go. Thanks.HannesFelbertThu, 27 Sep 2018 07:08:30 +0200https://ask.sagemath.org/question/43777/Modifying ncpus.py to detect processors on computational nodeshttps://ask.sagemath.org/question/8746/modifying-ncpuspy-to-detect-processors-on-computational-nodes/Recently we've been attempting to run Sage on a LittleFe cluster (littlefe.net if you're interested to read more), however, the ncpus function reads directly from system settings, thus it only reads the two slots on the head node of the cluster. In order to run other jobs outside of Sage using OpenMPI, we are able to input a machine file generated by a BCCD specific command as an argument for OpenMPI to detect and use the slots on the other nodes. I'm wondering if there is a way to either modify the existing check or if there is another way to detect the slots on the other nodes to fully utilize Sage's parallel capabilities.Evan F.Mon, 27 Feb 2012 14:30:13 +0100https://ask.sagemath.org/question/8746/