Giter VIP home page Giter VIP logo

Comments (11)

erickpeirson avatar erickpeirson commented on August 11, 2024

Yikes, that's odd. Looking into it.

from tethne.

erickpeirson avatar erickpeirson commented on August 11, 2024

@aosingh Can you take a look at this today?

from tethne.

aosingh avatar aosingh commented on August 11, 2024

@erickpeirson
ok, will pick this today.

from tethne.

aosingh avatar aosingh commented on August 11, 2024

@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.

erickpeirson avatar erickpeirson commented on August 11, 2024

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.

aosingh avatar aosingh commented on August 11, 2024

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.

erickpeirson avatar erickpeirson commented on August 11, 2024

Awesome; can you raise a PR?

from tethne.

aosingh avatar aosingh commented on August 11, 2024

PR raised.

from tethne.

erickpeirson avatar erickpeirson commented on August 11, 2024

@KHoover2009 Can you confirm that this fixes the problem?

Be sure to install the latest version of tethne:

$ pip install -U tethne

from tethne.

KHoover2009 avatar KHoover2009 commented on August 11, 2024

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.

erickpeirson avatar erickpeirson commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.