modularity

R: igraph, community detection, edge.betweenness method, count/list members of each community?

ぃ、小莉子 提交于 2019-12-02 22:37:40
I've a relatively large graph with Vertices: 524 Edges: 1125, of real world transactions. The edges are directed and have a weight (inclusion is optional). I'm trying investigate the various communities within the graph and essentially need a method which: -Calculates all possible communities -Calculates the optimum number of communities -Returns the members/# of members of each (optimum) community So far I've managed to pull together the following code which plots a color coded graph corresponding to the various communities, however I've no idea how to control the number of communities (i.e

How to modularize a (large) Java App?

血红的双手。 提交于 2019-12-02 17:21:53
I have a rather large (several MLOC) application at hand that I'd like to split up into more maintainable separate parts. Currently the product is comprised of about 40 Eclipse projects, many of them having inter-dependencies. This alone makes a continuous build system unfeasible, because it would have to rebuild very much with each checkin. Is there a "best practice" way of how to identify parts that can immediately be separated document inter-dependencies visually untangle the existing code handle "patches" we need to apply to libraries (currently handled by putting them in the classpath

Approach to handle javascript on bigger projects?

血红的双手。 提交于 2019-12-02 16:51:07
After discovering jQuery a few years ago, I realized how easy it was to really make interactive and user friendly websites without writing books of code. As the projects increased in size, so did also the time required to carry out any debugging or perhaps implementing a change or new feature. From reading various blogs and staying somewhat updated, I've read about libraries similar to Backbone.js and JavascriptMVC which both sound like good alternatives in order to make the code more modular and separated. However as being far from an Javascript or jQuery expert, I am not really not suited to

How to build java 9 dependencies from maven dependencies

落爺英雄遲暮 提交于 2019-11-30 16:23:30
问题 Java9 has introduced a strong modularity similar to OSGI and Maven Dependecies. Is there a maven plugin able to build the java 9 dependencies inspecting maven dependencies? For example, from <groupId>com.mycompany.app</groupId> <artifactId>my-module</artifactId> .... <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>23.3-jre</version> </dependency> to module my-module{ requires com.google.guava; exports com.mycompany.app; } I have read this article, but

How do I protect my Python codebase so that guests can't see certain modules but so it still works?

﹥>﹥吖頭↗ 提交于 2019-11-30 16:11:31
We're starting a new project in Python with a few proprietary algorithms and sensitive bits of logic that we'd like to keep private. We also will have a few outsiders (select members of the public) working on the code. We cannot grant the outsiders access to the small, private bits of code, but we'd like a public version to work well enough for them. Say that our project, Foo, has a module, bar , with one function, get_sauce() . What really happens in get_sauce() is secret, but we want a public version of get_sauce() to return an acceptable, albeit incorrect, result. We also run our own

Designing a pluggable points and badges system [closed]

我的未来我决定 提交于 2019-11-30 14:20:30
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . How do I design a pluggable points and badges system which is easy to turn on and off, as well as easy to turn into a module of its own? After many trials and errors I reached the conclusion that points and badges are simply too intertwined into the sole business logic of the application that they

Designing a pluggable points and badges system [closed]

我的梦境 提交于 2019-11-30 10:07:00
How do I design a pluggable points and badges system which is easy to turn on and off, as well as easy to turn into a module of its own? After many trials and errors I reached the conclusion that points and badges are simply too intertwined into the sole business logic of the application that they cannot be externalized in a simple way (many rules involve understanding of the core structure of the application, which makes things already quite coupled) I currently do everything the simple way - I externalized all the business logic (validation, persistence, gamification, notifications) in the

Plotting communities with python igraph

走远了吗. 提交于 2019-11-30 09:49:49
I have a graph g in python-igraph. I can get a VertexCluster community structure with the following: community = g.community_multilevel() community.membership gives me a list of the group membership of all the vertices in the graph. My question is really simple but I haven't found a python-specific answer on SO. How can I plot the graph with visualization of its community structure? Preferably to PDF, so something like layout = g.layout("kk") plot(g, "graph.pdf", layout=layout) # Community detection? Thanks a lot. You can pass your VertexClustering object directly to the plot function; it will

How to find unneccesary dependencies in a maven multi-project?

女生的网名这么多〃 提交于 2019-11-30 07:06:39
If you are developing a large evolving multi module maven project it seems inevitable that there are some dependencies given in the poms that are unneccesary, since they are transitively included by other dependencies. For example this happens if you have a module A that originally includes C. Later you refactor and have A depend on a module B which in turn depends on C. If you are not careful enough you'll wind up with both B and C in A's dependency list. But of course you do not need to put C into A's pom, since it is included transitively, anyway. Is there tool to find such unneccesary

How do I protect my Python codebase so that guests can't see certain modules but so it still works?

北慕城南 提交于 2019-11-29 22:43:57
问题 We're starting a new project in Python with a few proprietary algorithms and sensitive bits of logic that we'd like to keep private. We also will have a few outsiders (select members of the public) working on the code. We cannot grant the outsiders access to the small, private bits of code, but we'd like a public version to work well enough for them. Say that our project, Foo, has a module, bar , with one function, get_sauce() . What really happens in get_sauce() is secret, but we want a