Comments (11)
Yikes, that's odd. Looking into it.
from tethne.
@aosingh Can you take a look at this today?
from tethne.
@erickpeirson
ok, will pick this today.
from tethne.
@erickpeirson,
The method, as shown below, returns a Graph object. The class nx.Graph is the base class for undirected graphs.
return _generate_graph(nx.Graph, pairs, node_attrs=node_type,
min_weight=min_weight)
We can modify it to return a DiGraph.
from tethne.
Yes, we should change that to a DiGraph
https://asu.academia.edu/ErickPeirson
Postdoctoral Researcher
Arizona State University
On Fri, Mar 18, 2016 at 1:24 PM, Abhishek Omprakash Singh <
[email protected]> wrote:
@erickpeirson https://github.com/erickpeirson,
The method, as shown below, returns a Graph object. The class nx.Graph is
the base class for undirected graphs.return _generate_graph(nx.Graph, pairs, node_attrs=node_type,
min_weight=min_weight)We can modify it to return a DiGraph.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#137 (comment)
from tethne.
Fixed and tested it. Also changed the test case validation to self.assertIsInstance(g, nx.DiGraph).
Please find below an execution trace for wos corpus.
wos_citation_graph = papers.direct_citation(wosCorpus)
type(wos_citation_graph) <class 'networkx.classes.digraph.DiGraph'>
from tethne.
Awesome; can you raise a PR?
from tethne.
PR raised.
from tethne.
@KHoover2009 Can you confirm that this fixes the problem?
Be sure to install the latest version of tethne:
$ pip install -U tethne
from tethne.
Confirmed
Kevin Hoover
[email protected]
From: Erick [email protected]
Sent: Wednesday, May 18, 2016 4:24:07 AM
To: diging/tethne
Cc: Hoover, Kevin; Mention
Subject: Re: [diging/tethne] direct_citation creates undirected graph with no node attributes (#137)
@KHoover2009https://github.com/KHoover2009 Can you confirm that this fixes the problem?
Be sure to install the latest version of tethne:
$ pip install -U tethne
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHubhttps://github.com//issues/137#issuecomment-219986356
from tethne.
Fantastic; thanks!
Erick Peirson
Postdoctoral Scholar
ASU-SFI Center for Biosocial Complexity
Arizona State University
On May 18, 2016, at 5:41 PM, KHoover2009 [email protected] wrote:
Confirmed
Kevin Hoover
[email protected]
From: Erick [email protected]
Sent: Wednesday, May 18, 2016 4:24:07 AM
To: diging/tethne
Cc: Hoover, Kevin; Mention
Subject: Re: [diging/tethne] direct_citation creates undirected graph with no node attributes (#137)@KHoover2009https://github.com/KHoover2009 Can you confirm that this fixes the problem?
Be sure to install the latest version of tethne:
$ pip install -U tethne
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHubhttps://github.com//issues/137#issuecomment-219986356
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
from tethne.
Related Issues (20)
- Possibility to ignore certain WoS-tags HOT 5
- value error importing metadata zotero RDF HOT 1
- Transform FeatureSet HOT 5
- DTM import error HOT 5
- Using Mallet file as corpus for the LDA model HOT 6
- RuntimeError: MALLET import-file failed with exit code 127 HOT 9
- ImportError: failed to find libmagic. Check your installation` HOT 1
- attachment_probability does not work in v0.8 HOT 8
- Error in reading all wos files in a folder HOT 2
- availability of topic coherence measure HOT 1
- Missing module HOT 2
- ImportError: cannot import name _iterable HOT 1
- Tethne Install Error setup.py egg_info HOT 3
- AttributeError: 'module' object has no attribute 'wos'
- KeyError: 'date' same error in generating co-author and co-citation graphs HOT 1
- 'module' object has no attribute 'wos' HOT 1
- Installation error HOT 4
- Documentation for 0.8 incorrectly specifies what's returned in a direct_citation graph
- authorKeywords and keywordsPlus are inversed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tethne.