stochastic block model

Data
stochastic block model

an n-node stochastic block model (SBM) graph with C communities is given by

P=YBYT,AP

where

  • Y{0,1}n×c is the community assignment matrix (if yic=1 then node i belongs to community c)
  • B is the matrix of intra- and inter-community probabilities: Bc1,c2 is the edge probability for a node pair (i,j) such that Yic1=1,Yjc2=1
  • A is the adjacency matrix
Note

While B can take any value (as long as it is symmetric), often we have $$B = \begin{cases}p \text{ if }c_{1}=c_{2} \ q \text{ otherwise}\end{cases}$$
with q=1p

see also the wikipedia

References

References

See Also

Mentions

Mentions

const modules = await cJS()

const COLUMNS = [  
	{ id: "Name", value: page => page.$link },  
	{ id: "Last Modified", value: page => modules.dateTime.getLastMod(page) },
];  
  
return function View() {  
	const current = dc.useCurrentFile();
// Selecting `#game` pages, for example. 
	let queryString = `@page and linksto(${current.$link})`;
	let pages = dc.useQuery(queryString);
	
	// check types
	pages = pages.filter( (p) => !modules.typeCheck.checkAll(p, current) ).sort()
	
	
	return <dc.Table columns={COLUMNS} rows={pages} paging={20}/>;  
}  

return function View() {
	const file = dc.useCurrentFile();
	const created = file.value("created");
	const modified = file.value("modified")
	
	let earliest;
	if (created) {
		earliest = moment(created.toString()).isBefore(moment(file.$ctime))
		? created.toString()
		: file.$ctime;
		} else {
		earliest = file.$ctime
	}
	
	let latest = (Array.isArray(modified) && modified.length > 0)
		? modified[-1]
		: file.$mtime;
	
	let earlyString = moment(earliest).format("YYYY-MM-DD");
	let lateString = moment(latest).format("YYYY-MM-DD")
	return <p class="dv-modified">Created {earlyString}     ֍     Last Modified {lateString}</p>
}