TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Little Ball of Fur – A Python library for graph subsampling

119 点作者 benitorosenberg将近 5 年前

7 条评论

arathore将近 5 年前
For those who might not be familiar, graph subsampling is a method of extracting smaller graphs from a large graph while preserving some notion of overall structure. The subsampling can be focused on finding representative nodes, edges or combinations of those (as well as optimizing for some other local or global properties).<p>It has applications wherever large graphs are encountered - social networks, biological processes etc. An example application of the library could be as follows - you have a very large graph and you want to do spectral clustering. Throwing spectral clustering directly at such large graphs might not be feasible, so one can first perform a node based subsampling and then apply spectral clustering on the smaller graph on the representative nodes found by the subsampling.
perfunctory将近 5 年前
<p><pre><code> def _check_networkx_graph(self, graph): try: if not isinstance(graph, nx.classes.graph.Graph): raise TypeError(&quot;This is not a NetworkX graph. Please see requirements.&quot;) except: exit(&quot;This is not a NetworkX graph. Please see requirements.&quot;) </code></pre> First, I don&#x27;t want any library to call exit on me. Second, what is it even trying to do? Raising an exception and immediately catching it? At best this is just a horrible style.
评论 #23231150 未加载
gunshai将近 5 年前
This link at the bottom of the readme is incorrect fyi. I&#x27;m too lazy to create a pull request sorry.<p><a href="https:&#x2F;&#x2F;littleballoffur.readthedocs.io&#x2F;en&#x2F;latest&#x2F;notes&#x2F;introduction.html" rel="nofollow">https:&#x2F;&#x2F;littleballoffur.readthedocs.io&#x2F;en&#x2F;latest&#x2F;notes&#x2F;intro...</a><p>---&gt;<p><a href="https:&#x2F;&#x2F;little-ball-of-fur.readthedocs.io&#x2F;en&#x2F;latest&#x2F;notes&#x2F;introduction.html" rel="nofollow">https:&#x2F;&#x2F;little-ball-of-fur.readthedocs.io&#x2F;en&#x2F;latest&#x2F;notes&#x2F;in...</a>
评论 #23221941 未加载
bglazer将近 5 年前
This is fantastic. I&#x27;ve been looking for a strategy for graph subsampling for my research on protein-protein interaction networks. It&#x27;s a surprisingly tricky problem, that I now don&#x27;t have to worry about as much, thanks to this library.
kalev将近 5 年前
Any good resources for graph theory? I know high level basics, but do not know what subsampling is. It might be useful to add a quick explanation to the readme.md.
评论 #23222692 未加载
hprotagonist将近 5 年前
when you include your test suite in your repo, consider hypothesis.rtfd.org ... and if you find yourself making new strategies for networkx, please push them up to hypothesis as a plugin!
stefanpie将近 5 年前
I&#x27;m familiar with graphs but not graph subsampling. What is graph subsampling used for and what are some applications that can use it?