modularity

Modularity calculation for weighted graphs in igraph

坚强是说给别人听的谎言 提交于 2019-12-05 20:11:49
I used the fastgreedy algorithm in igraph for my community detection in a weighted, undirected graph. Afterwards I wanted to have a look at the modularity and I got different values for different methods and I am wondering why. I included a short example, which demonstrates my problem: library(igraph) d<-matrix(c(1, 0.2, 0.3, 0.9, 0.9, 0.2, 1, 0.6, 0.4, 0.5, 0.3, 0.6, 1, 0.1, 0.8, 0.9, 0.4, 0.1, 1, 0.5, 0.9, 0.5, 0.8, 0.5, 1), byrow=T, nrow=5) g<-graph.adjacency(d, weighted=T, mode="lower",diag=FALSE, add.colnames=NA) fc<-fastgreedy.community(g) fc$modularity[3] #[1] -0.05011095 modularity(g

Modular android project - how?

泪湿孤枕 提交于 2019-12-05 20:03:50
My scenario I have to implement a "modular" android app. There is a core module from which I should be able to invoke other modules. Each module provides a different feature to the user. Imagine I am making a city guide, then one module may contain a map with POIs, another one an event calendar and a third one pre-defined city guides. The modules contain views to be loaded in activities of the core module (like dashboards where each module puts its item/picture). They also contain activities which should be invoked (like when a user taps an item on the dashboard). As far as I know, I will need

Modularizing Rails applications

流过昼夜 提交于 2019-12-05 10:24:38
I'm looking for a way to modularize Rails applications. As I've seen there is no built-in way of accomplishing it. I've found different plugins/core hacks but I feel untrusted about the way they work and their maturity. Do you have any experience on this? So far I found this ones: Desert: http://github.com/pivotal/desert Rails engines: http://rails-engines.org/ Rails engines are part of the current stable rails 2.X and so aren't really "hacks" anymore. They seem like a good fit if you want to add fairly course-grained application functionality to an application - a good example might be adding

CMake: how best to build multiple (optional) subprojects?

馋奶兔 提交于 2019-12-05 09:59:23
问题 Imagine an overall project with several components: basic io web app-a app-b app-c Now, let's say web depends on io which depends on basic, and all those things are in one repo and have a CMakeLists.txt to build them as shared libraries. How should I set things up so that I can build the three apps, if each of them is optional and may not be present at build time? One idea is to have an empty "apps" directory in the main repo and we can clone whichever app repos we want into that. Our main

Android why Fragments should not directly communicate with each other?

时光总嘲笑我的痴心妄想 提交于 2019-12-05 07:27:53
I have an Activity A hosting two main Fragment F1 and F2 . Both F1 and F2 have nested Fragment , each with its own Listener interface for exchanging data. From what I understood from the answer to this question , the activity A : needs to know every single interface declared by the fragments hosted by F1 and F2 needs to route the events generated by the fragments in F1 and F2 to the correct main fragment, F1 or F2 . If I understood correctly, there is no modularity in this approach: the activity needs to know everything about both the fragments it hosts ( F1 and F2 ) and the fragments that are

Modular applications with Entity Framework Code Only and ASP.NET MVC

怎甘沉沦 提交于 2019-12-05 04:45:15
By modular applications I mean applications in which base functionality and data model can be extended without modifying core application code. It's a popular approach with eg. open source CRMs like SugarCRM or VTiger. This approach may be followed in asp.net mvc application using Areas or (portable areas from MVC contrib) which allow adding new controllers and views in separate assemblies, without impacting core dlls. The problem arises when one wants to extend the base application's data model. It's not possible in any practical sense with entity framework where the model definition is

Modularize AngularJS application : one or multiple AngularJS modules?

天涯浪子 提交于 2019-12-04 21:59:03
问题 I try to build a modular application using AngularJS. My first idea is to group each module by functionnality with this kind of folder structure : /core controllers.js directives.js app.js /modules /users controllers.js directives.js /invoices controllers.js directives.js /messages controllers.js directives.js ... Notice that the "core" folder contains basics features that will always be in the app. Others modules can be add or remove independently. As my application will be large, I also

OSGI runtime inside traditional Java EE server

 ̄綄美尐妖づ 提交于 2019-12-04 18:14:26
问题 I understand it should probably be other way round (OSGI runtime hosting Java EE servers), as it is apparently already possible with glassfish. However, our clients have extensive experience in administering traditional Java EE servers and significant investment (licenses, training etc.) Our architecture would benefit from OSGI modular architecture, but I can not ask our clients to switch from Java EE servers to OSGI runtimes. Is there a way to install OSGI runtime as war or ear inside

Modular application

送分小仙女□ 提交于 2019-12-04 17:26:33
Recently we decided to refactor our old web ASP.NET MVC project. We decided to use modular architecture and build it around the ASP.NET WebAPI to write dependent and independent modules for it. Is there any tutorial or explanation or library helping build modular web applications? If so, can you point me to this? Thanks in advance!! Depends on your necessity. If you need to provide service to the world outside your app domain go for SOA. If you need only project organization, just fallow Microsoft Application Architecture , or some Business Architecture Guide for .NET . You should see some of

Extending Java Web Applications with plugins

好久不见. 提交于 2019-12-04 12:18:54
问题 I have this web application that has grown to an unmanageable mess. I want to split it into a common "framework" part (that still includes web stuff like pages and images) and several modules that add extra functionality and screens. I want this refactoring to also be useful as a plugin system for third-party extensions. All modules need to be separate unit of deployments, ideally a war or jar file. I tried to just make several regular war files, but Tomcat keeps (according to the servlet