community.to.membership in igraph 1.0 - igraph

I have a quick question, is the function community.to.membership deprecated in igraph 1.0? I can find membership function, but it does not include the options merges, steps, and so on,
Any ideas?
Thanks

Yes, community.to.membership is deprecated. However, you have membership() to retrieve the membership vector or merges() to retrieve the merge matrix. See ?communities from the R prompt.

Related

what are 'NET USE' possible outputs?

The question is : what are the NET USE possible outputs?
You can drown yourself with websites explaining how to use NET USE command, but not a single one about what is coming out of it.
In my case I'm interested in the various error messages, and the interaction with the Powershell automatic variable $LASTEXITCODE. I want to handle its output correctly but I don't know what can even happen (and no, I won't use New-PSDrive).
Does someone knows the what or where I can find the information ?
Thanks
You can use the example in https://www.compatdb.org/forums/topic/20487-net-use-return-code/ to obtain a list of the numerical codes for your evaluation.
If you want to dig deeper take you need to download the Win32 SDK and go through the definitions in the header files (see https://learn.microsoft.com/en-us/windows/win32/api/winnetwk/ns-winnetwk-netresourcea etc).

Undocumented opencv function?

may I know what is the difference between an "UNDOCUMENTED" opencv function with a documented one? I have searched online but apparently I do not get the explanation that is clear enough to make me clear my doubt. Thanks
The function is calcBluriness, which is used to determine the blurriness of a given image. Thanks
This question is rather a non question, but here is an answer anyway in case of future viewers.
All of OpenCV is documented, and documentation is part of the development process, you can access the docs here
As for calcBluriness, it is also documented, you can find that here

Is igraph R package more perfect than python-igraph?

I try to use igraph package transferring from R to python. But I have one question. For instance, I want to use the graph.bfs function. In R, this function has many parameters. (http://www.inside-r.org/packages/cran/igraph/docs/graph.bfs)
But in python-igraph, I only find the function bfs. (http://igraph.org/python/doc/igraph.GraphBase-class.html#bfs)
Did I miss the similar function in python-igraph or is igraph R package more perfect than python-igraph?
While they are based on the same C library, the Python and R wrappers are somewhat different, so expect to have some differences. I would not say either of them is better or worse, they are just slightly different.
If there is a feature that is implemented in one language, but not in the other, then you can open an issue at the igraph issue tracker at https://github.com/igraph/igraph/issues and request it.

How to use DataProtectionProvider?

I'm new to WinRT and was exploring it's security features and I've got a couple of questions regarding to Windows.Security.Cryptography.DataProtection.DataProtectionProvider class:
What encryption algorithm does it use (e.g. AES or TwoFish)?
According to MSDN document you can use symmetric key for encryption, anyone knows what do you pass in as 'protectionDescription' constructor argument if you want to do this?
Finally, the MSDN document says you have to use the parameter-less constructor before calling the UnprotectAsync method. How come you don't need to pass in a key to decrypt the data?
Thanks.
No one here explained or gave the answer to the original question. I couldn't find much information on DataProtectionProvider.
After I downloaded and went through the Metro samples as suggested by Ritch, I found out that I should be using classes under Windows.Security.Cryptography.Core namespace for data encryption.

How can I generate a list of function dependencies in MATLAB?

In order to distribute a function I've written that depends on other functions I've written that have their own dependencies and so on without distributing every m-file I have ever written, I need to figure out what the full list of dependencies is for a given m-file. Is there a built-in/freely downloadable way to do this?
Specifically I am interested in solutions for MATLAB 7.4.0 (R2007a), but if there is a different way to do it in older versions, by all means please add them here.
For newer releases of Matlab (eg 2007 or 2008) you could use the built in functions:
mlint
dependency report and
coverage report
Another option is to use Matlab's profiler. The command is profile, it can also be used to track dependencies. To use profile, you could do
>> profile on % turn profiling on
>> foo; % entry point to your matlab function or script
>> profile off % turn profiling off
>> profview % view the report
If profiler is not available, then perhaps the following two functions are (for pre-MATLAB 2015a):
depfun
depdir
For example,
>> deps = depfun('foo');
gives a structure, deps, that contains all the dependencies of foo.m.
From answers 2, and 3, newer versions of MATLAB (post 2015a) use matlab.codetools.requiredFilesAndProducts instead.
See answers
EDIT:
Caveats thanks to #Mike Katz comments
Remember that the Profiler will only
show you files that were actually used
in those runs, so if you don't go
through every branch, you may have
additional dependencies. The
dependency report is a good tool, but
only resolves static dependencies on
the path and just for the files in a
single directory.
Depfun is more reliable but gives you
every possible thing it can think of,
and still misses LOAD's and EVAL's.
For MATLAB 2015a and later you should preferably look at matlab.codetools.requiredFilesAndProducts
or doc matlab.codetools.requiredFilesAndProducts
because depfun is marked to be removed in a future release.